summaryrefslogtreecommitdiff
path: root/src/mainwindow.cpp
diff options
context:
space:
mode:
authorEran Mizrahi <erasmux@gmail.com>2017-12-13 09:49:09 +0200
committerEran Mizrahi <erasmux@gmail.com>2017-12-13 22:27:11 +0200
commit0586b2856b0b8973e5781b9b0a1b5e5acac20532 (patch)
treed463912f361f029a1f059f46f7176d8531547288 /src/mainwindow.cpp
parent184b6d3907586d2d4425bba29dd3e14cae9ecbf3 (diff)
Locked dialog fixes (fix mainwindow modalness; use normal window to fix parentless scenario)
Diffstat (limited to 'src/mainwindow.cpp')
-rw-r--r--src/mainwindow.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/mainwindow.cpp b/src/mainwindow.cpp
index 632b64e9..1e1a4558 100644
--- a/src/mainwindow.cpp
+++ b/src/mainwindow.cpp
@@ -1471,7 +1471,8 @@ ILockedWaitingForProcess* MainWindow::lock()
++m_LockCount;
return m_LockDialog;
}
- m_LockDialog = new LockedDialog(qApp->activeWindow());
+ m_LockDialog = new LockedDialog(this, true);
+ m_LockDialog->setModal(true);
m_LockDialog->show();
setEnabled(false);
m_LockDialog->setEnabled(true); //What's the point otherwise?