From 540747177ae02c9431d33a2c3adc1f747b74b868 Mon Sep 17 00:00:00 2001 From: Tannin Date: Wed, 16 Apr 2014 22:32:59 +0200 Subject: - 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 --- src/mainwindow.cpp | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'src/mainwindow.cpp') 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 -- cgit v1.3.1