From e741cefeed65dc02fd7ca5bf3d94689c38811393 Mon Sep 17 00:00:00 2001 From: Marius Stanciu Date: Tue, 4 Aug 2020 11:31:46 +0300 Subject: [PATCH] - small fix --- app_Main.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/app_Main.py b/app_Main.py index ee9973de..70e7dfd6 100644 --- a/app_Main.py +++ b/app_Main.py @@ -2429,8 +2429,11 @@ class App(QtCore.QObject): # close the open tab for idx in range(self.ui.plot_tab_area.count()): - if self.ui.plot_tab_area.widget(idx).objectName() == 'gcode_editor_tab': - self.ui.plot_tab_area.closeTab(idx) + try: + if self.ui.plot_tab_area.widget(idx).objectName() == 'gcode_editor_tab': + self.ui.plot_tab_area.closeTab(idx) + except AttributeError: + continue else: self.inform.emit('[WARNING_NOTCL] %s' % _("Select a Gerber, Geometry, Excellon or CNCJobObject to update."))