From 3bf4bfdc67e2faff15d40d69f83939120b80244f Mon Sep 17 00:00:00 2001 From: bicobus Date: Tue, 28 Apr 2020 00:50:53 +0200 Subject: [PATCH] Provide a return value for the clicked.connect() callback --- qmm/widgets.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/qmm/widgets.py b/qmm/widgets.py index 37bab31..6ec0c31 100644 --- a/qmm/widgets.py +++ b/qmm/widgets.py @@ -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)