diff options
| author | Eran Mizrahi <erasmux@gmail.com> | 2017-12-13 09:33:20 +0200 |
|---|---|---|
| committer | Eran Mizrahi <erasmux@gmail.com> | 2017-12-13 22:27:11 +0200 |
| commit | 4d54b962aaa13e6f78f2c89dcc9f03f9fadac35c (patch) | |
| tree | 5338ffaca2b12f09a5c688db14318f1fb695bd57 /src/main.cpp | |
| parent | 6773e14fc5ae8f0dd9ae0411248af0809d38d9af (diff) | |
Allow silent closing during instance selection
Diffstat (limited to 'src/main.cpp')
| -rw-r--r-- | src/main.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
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);
|
