diff options
author | pravindalve | 2020-12-24 21:39:44 +0530 |
---|---|---|
committer | pravindalve | 2020-12-24 21:39:44 +0530 |
commit | 1fd0ccc7da922a2e0806292daf688a60d5757865 (patch) | |
tree | 74a3a192a89ef39fa15b3ca4c01046886565a3a5 | |
parent | cca55e231036850b2ea235ef0e1a1dc05db2a4b0 (diff) | |
download | Chemical-PFD-1fd0ccc7da922a2e0806292daf688a60d5757865.tar.gz Chemical-PFD-1fd0ccc7da922a2e0806292daf688a60d5757865.tar.bz2 Chemical-PFD-1fd0ccc7da922a2e0806292daf688a60d5757865.zip |
button click anomaly fixed
-rw-r--r-- | src/main/python/main.py | 4 | ||||
-rw-r--r-- | 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 |