summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPapoteur <papoteur@mageia.org>2023-12-01 09:28:11 +0100
committerPapoteur <papoteur@mageia.org>2023-12-01 09:28:11 +0100
commit54f445cc3154aa598d492be7bd5966479b517961 (patch)
tree9cc0150cdb45c08a3179487c3a0891bd5c3a8574
parent205bf52edbbe787605697b6736c70ddcd827ddf2 (diff)
downloadmga-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.py2
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'}