From 54f445cc3154aa598d492be7bd5966479b517961 Mon Sep 17 00:00:00 2001 From: Papoteur Date: Fri, 1 Dec 2023 09:28:11 +0100 Subject: Launch retrieve info when return is pressed in bug number --- mga-advisor.py | 2 ++ 1 file changed, 2 insertions(+) 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'} -- cgit v1.2.1