diff options
| author | Eran Mizrahi <erasmux@gmail.com> | 2017-12-13 09:33:20 +0200 |
|---|---|---|
| committer | Jeremy Rimpo <jeremy.rimpo@servermonkey.com> | 2017-12-13 16:53:20 -0600 |
| commit | da35cd3ea0e819d88b4df60f7738637cac227ecd (patch) | |
| tree | 5338ffaca2b12f09a5c688db14318f1fb695bd57 /src/main.cpp | |
| parent | bd48d2f8bcd11a82ed4c60bde205ab76d19f69ce (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);
|
