diff options
| author | Tannin <devnull@localhost> | 2014-01-27 21:31:10 +0100 |
|---|---|---|
| committer | Tannin <devnull@localhost> | 2014-01-27 21:31:10 +0100 |
| commit | ccd5d1294f08f4bf6852ef543454b52022134e31 (patch) | |
| tree | 81c80d47e18b7d23212aa8c4bd499d04984d1f91 /src/mainwindow.cpp | |
| parent | de984a4ef8b4720f73db5b80b018b358cbe12f8a (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.cpp | 6 |
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(); |
