summaryrefslogtreecommitdiff
path: root/src/mainwindow.cpp
diff options
context:
space:
mode:
authorEran Mizrahi <erasmux@gmail.com>2017-12-13 09:49:09 +0200
committerJeremy Rimpo <jeremy.rimpo@servermonkey.com>2017-12-13 16:53:20 -0600
commit81344771dd03fd844daeedcbf3545103db3898c0 (patch)
treed463912f361f029a1f059f46f7176d8531547288 /src/mainwindow.cpp
parent2c28107ae8976d0b9c50f3477f4b563daa1617fd (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?