From f30b44d63745733891839f243733f9f32cd18f30 Mon Sep 17 00:00:00 2001 From: Marius Stanciu Date: Fri, 1 Jun 2018 14:50:29 +0300 Subject: [PATCH] - automatically select the object on every new_object while previously selected objects are deselected leaving the new object as the only one selected. --- FlatCAMApp.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/FlatCAMApp.py b/FlatCAMApp.py index f2d6f500..0d2b4048 100644 --- a/FlatCAMApp.py +++ b/FlatCAMApp.py @@ -1567,6 +1567,11 @@ class App(QtCore.QObject): if plot: obj.plot() + # deselect all previously selected objects and select the new one + self.collection.set_all_inactive() + name = obj.options['name'] + self.collection.set_active(name) + self.on_zoom_fit(None) t1 = time.time() # DEBUG self.log.debug("%f seconds adding object and plotting." % (t1 - t0))