Fix condition
authorHannah von Reth <hannah.vonreth@owncloud.com>
Thu, 22 Oct 2020 10:10:24 +0000 (12:10 +0200)
committerKevin Ottens <kevin.ottens@nextcloud.com>
Tue, 15 Dec 2020 09:59:26 +0000 (10:59 +0100)
src/gui/application.cpp

index 022ae9a1dd3b1662aeec3de3591f5598f2c9bdab..2de2522bcb639e48e33253251b7d8b3a165d5548 100644 (file)
@@ -266,7 +266,7 @@ Application::Application(int &argc, char **argv)
     if (ConfigFile().crashReporter()) {
         auto reporter = QStringLiteral(CRASHREPORTER_EXECUTABLE);
 #ifdef Q_OS_WIN
-        if (reporter.endsWith(QLatin1String(".exe"))) {
+        if (!reporter.endsWith(QLatin1String(".exe"))) {
             reporter.append(QLatin1String(".exe"));
         }
 #endif