Remove QMessageBox dependency in NWProject class

This commit is contained in:
Veronica K. B. Olsen
2020-12-05 19:13:36 +01:00
parent 57397fa2bc
commit c17d4de0a5
3 changed files with 49 additions and 47 deletions
+7
View File
@@ -982,6 +982,13 @@ class GuiMain(QMainWindow):
return
def askQuestion(self, theTitle, theQuestion):
"""Ask the user a Yes/No question.
"""
msgBox = QMessageBox()
msgRes = msgBox.question(self, theTitle, theQuestion)
return msgRes == QMessageBox.Yes
def reportConfErr(self):
"""Checks if the Config module has any errors to report, and let
the user know if this is the case. The Config module caches