aboutsummaryrefslogtreecommitdiff
path: root/mainwindow.py
diff options
context:
space:
mode:
authortassaron2017-06-10 12:10:05 -0400
committertassaron2017-06-10 12:10:05 -0400
commitb048312882f80d43e3d8b1573814badf70fe3b92 (patch)
tree832c1af46c020d6184bd676596dccb8a584f104f /mainwindow.py
parentd3f979ef2461a3de701df0d5add545b80dfe23ad (diff)
close button works, dialogs properly parented
hint text wording changed by IamDH4's suggestion
Diffstat (limited to 'mainwindow.py')
-rw-r--r--mainwindow.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/mainwindow.py b/mainwindow.py
index 45262f7..3e49ab2 100644
--- a/mainwindow.py
+++ b/mainwindow.py
@@ -601,7 +601,9 @@ class MainWindow(QtCore.QObject):
print('project file missing value: %s' % e)
def showMessage(self, **kwargs):
- msg = QtGui.QMessageBox()
+ parent = kwargs['parent'] if 'parent' in kwargs else self.window
+ msg = QtGui.QMessageBox(parent)
+ msg.setModal(True)
msg.setText(kwargs['msg'])
msg.setIcon(
kwargs['icon'] if 'icon' in kwargs else QtGui.QMessageBox.Information)