diff options
| author | Tannin <devnull@localhost> | 2014-04-16 22:32:59 +0200 |
|---|---|---|
| committer | Tannin <devnull@localhost> | 2014-04-16 22:32:59 +0200 |
| commit | 540747177ae02c9431d33a2c3adc1f747b74b868 (patch) | |
| tree | 2c6964ea98dd369ab079d10b46cb008729cccdcd /src/mainwindow.cpp | |
| parent | 739c3424e7c058f972a2648f2231e6a10c59662d (diff) | |
- loot client no longer stalls the process while waiting for masterlist update
- configurator now gives better warning messages when encountering an invalid ini file
- bugfix: crash on cleanup up browser dialog
- bugfix: GetCurrentDirectory returned wrong string length
Diffstat (limited to 'src/mainwindow.cpp')
| -rw-r--r-- | src/mainwindow.cpp | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/src/mainwindow.cpp b/src/mainwindow.cpp index 362a7c4c..d947bab2 100644 --- a/src/mainwindow.cpp +++ b/src/mainwindow.cpp @@ -2355,7 +2355,14 @@ HANDLE MainWindow::startApplication(const QString &executable, const QStringList QFileInfo binary; QString arguments = args.join(" "); QString currentDirectory = cwd; - QString profileName = (profile.length() > 0) ? profile : m_CurrentProfile->getName(); + QString profileName = profile; + if (profile.length() == 0) { + if (m_CurrentProfile != NULL) { + profileName = m_CurrentProfile->getName(); + } else { + throw MyException(tr("No profile set")); + } + } QString steamAppID; if (executable.contains('\\') || executable.contains('/')) { // file path |
