From 1fd0ccc7da922a2e0806292daf688a60d5757865 Mon Sep 17 00:00:00 2001 From: pravindalve Date: Thu, 24 Dec 2020 21:39:44 +0530 Subject: button click anomaly fixed --- src/main/python/main.py | 4 ++-- src/main/python/utils/toolbar.py | 1 - 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/src/main/python/main.py b/src/main/python/main.py index 35c95c3..3aa8e6a 100644 --- a/src/main/python/main.py +++ b/src/main/python/main.py @@ -136,8 +136,8 @@ class appWindow(QMainWindow): if i.tabCount: name = QFileDialog.getSaveFileName(self, 'Save File', f'New Diagram {j}', 'Process Flow Diagram (*.pfd)') i.saveProject(name) - else: - return False + else: + return False return True def saveImage(self): diff --git a/src/main/python/utils/toolbar.py b/src/main/python/utils/toolbar.py index f2bbd5a..dbfff22 100644 --- a/src/main/python/utils/toolbar.py +++ b/src/main/python/utils/toolbar.py @@ -110,7 +110,6 @@ class toolbar(QDockWidget): for item in toolbarItems[itemClass].keys(): obj = toolbarItems[itemClass][item] button = toolbarButton(self, obj) - button.clicked.connect(lambda : self.toolbuttonClicked.emit(obj)) self.toolbarButtonDict[itemClass][item] = button @property -- cgit