Skip to content

Commit

Permalink
Provide a return value for the clicked.connect() callback
Browse files Browse the repository at this point in the history
  • Loading branch information
bicobus committed Apr 27, 2020
1 parent 9d3a71c commit 3bf4bfd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion qmm/widgets.py
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ def set_mode(self, first_run=False):
self.setWindowFlag(Qt.WindowCloseButtonHint, on=True)

def connect_to_savebutton(self, callback):
self.settingwidget.save_button.clicked.connect(callback)
return self.settingwidget.save_button.clicked.connect(callback)

def disconnect_from_savebutton(self, callback):
self.settingwidget.save_button.disconnect(callback)
Expand Down

0 comments on commit 3bf4bfd

Please sign in to comment.