diff options
Diffstat (limited to 'mga-advisor.py')
-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'} |