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/main.cpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'src/main.cpp') diff --git a/src/main.cpp b/src/main.cpp index d1c5e263..3b89e721 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -536,7 +536,12 @@ int main(int argc, char *argv[]) arguments.removeFirst(); // remove application name (ModOrganizer.exe) arguments.removeFirst(); // remove binary name // pass the remaining parameters to the binary - mainWindow.startApplication(exeName, arguments, QString(), selectedProfileName); + try { + mainWindow.startApplication(exeName, arguments, QString(), selectedProfileName); + } catch (const std::exception &e) { + reportError(QObject::tr("failed to start application: %1").arg(e.what())); + } + return 0; } -- cgit v1.3.1