summaryrefslogtreecommitdiff
path: root/src/mainwindow.cpp
diff options
context:
space:
mode:
authorTannin <devnull@localhost>2014-01-27 21:31:10 +0100
committerTannin <devnull@localhost>2014-01-27 21:31:10 +0100
commitccd5d1294f08f4bf6852ef543454b52022134e31 (patch)
tree81c80d47e18b7d23212aa8c4bd499d04984d1f91 /src/mainwindow.cpp
parentde984a4ef8b4720f73db5b80b018b358cbe12f8a (diff)
- bugfix: accessing profile without loading one when starting an app through the commandline
- bugfix: locked-dialog was disabled
Diffstat (limited to 'src/mainwindow.cpp')
-rw-r--r--src/mainwindow.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/mainwindow.cpp b/src/mainwindow.cpp
index 0f98989c..ce4471a6 100644
--- a/src/mainwindow.cpp
+++ b/src/mainwindow.cpp
@@ -1317,7 +1317,9 @@ HANDLE MainWindow::spawnBinaryDirect(const QFileInfo &binary, const QString &arg
QCoreApplication::processEvents();
}
- m_CurrentProfile->writeModlistNow(true);
+ if (m_CurrentProfile != nullptr) {
+ m_CurrentProfile->writeModlistNow(true);
+ }
// TODO: should also pass arguments
if (m_AboutToRun(binary.absoluteFilePath())) {
@@ -1365,6 +1367,8 @@ void MainWindow::spawnBinary(const QFileInfo &binary, const QString &arguments,
close();
} else {
this->setEnabled(false);
+ // re-enable the locked dialog because what'd be the point otherwise?
+ dialog->setEnabled(true);
QCoreApplication::processEvents();