From 4d54b962aaa13e6f78f2c89dcc9f03f9fadac35c Mon Sep 17 00:00:00 2001 From: Eran Mizrahi Date: Wed, 13 Dec 2017 09:33:20 +0200 Subject: Allow silent closing during instance selection --- src/main.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/main.cpp') diff --git a/src/main.cpp b/src/main.cpp index b4faf570..90c15ccd 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -578,8 +578,8 @@ int main(int argc, char *argv[]) try { dataPath = InstanceManager::instance().determineDataPath(); } catch (const std::exception &e) { - QMessageBox::critical(nullptr, QObject::tr("Failed to set up instance"), - e.what()); + if (strcmp(e.what(),"Canceled")) + QMessageBox::critical(nullptr, QObject::tr("Failed to set up instance"), e.what()); return 1; } application.setProperty("dataPath", dataPath); -- cgit v1.3.1