diff options
author | Papoteur <papoteur@mageia.org> | 2023-12-01 09:28:11 +0100 |
---|---|---|
committer | Papoteur <papoteur@mageia.org> | 2023-12-01 09:28:11 +0100 |
commit | 54f445cc3154aa598d492be7bd5966479b517961 (patch) | |
tree | 9cc0150cdb45c08a3179487c3a0891bd5c3a8574 | |
parent | 205bf52edbbe787605697b6736c70ddcd827ddf2 (diff) | |
download | mga-advisor-54f445cc3154aa598d492be7bd5966479b517961.tar mga-advisor-54f445cc3154aa598d492be7bd5966479b517961.tar.gz mga-advisor-54f445cc3154aa598d492be7bd5966479b517961.tar.bz2 mga-advisor-54f445cc3154aa598d492be7bd5966479b517961.tar.xz mga-advisor-54f445cc3154aa598d492be7bd5966479b517961.zip |
Launch retrieve info when return is pressed in bug number
-rw-r--r-- | mga-advisor.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/mga-advisor.py b/mga-advisor.py index ce99345..cc8ba48 100644 --- a/mga-advisor.py +++ b/mga-advisor.py @@ -90,6 +90,7 @@ class Widget(QWidget): self.ui.cancel_pb.clicked.connect(self.cancel) self.ui.preview_pb.clicked.connect(self.preview) self.ui.bug_le.editingFinished.connect(self.valid_number) + self.ui.bug_le.returnPressed.connect(self.retrieve) def retrieve(self): """ @@ -99,6 +100,7 @@ class Widget(QWidget): mb = QMessageBox(QMessageBox.Warning, "Retrieve info", "Provide a bug number first", QMessageBox.Ok) mb.exec() return + self.valid_number() QApplication.setOverrideCursor(QCursor(Qt.WaitCursor)) url = os.path.join(BASE_URL, self.ui.bug_le.text()) + "?include_fields=cf_rpmpkg,cf_cve,url,component" headers = {'Accept': 'application/json'} |