cmake: avoid de-duplication of user's CXXFLAGS
[quassel.git] / src / qtui / qtuiapplication.cpp
index cd5d98a..4ed0583 100644 (file)
@@ -1,5 +1,5 @@
 /***************************************************************************
- *   Copyright (C) 2005-2018 by the Quassel Project                        *
+ *   Copyright (C) 2005-2022 by the Quassel Project                        *
  *   devel@quassel-irc.org                                                 *
  *                                                                         *
  *   This program is free software; you can redistribute it and/or modify  *
@@ -36,6 +36,9 @@ QtUiApplication::QtUiApplication(int& argc, char** argv)
 #if QT_VERSION >= 0x050600
     QGuiApplication::setFallbackSessionManagementEnabled(false);
 #endif
+#if QT_VERSION >= 0x050700
+    QGuiApplication::setDesktopFileName(Quassel::buildInfo().clientApplicationName);
+#endif
 }
 
 void QtUiApplication::init()
@@ -108,7 +111,7 @@ bool QtUiApplication::migrateSettings()
         return true;
     }
     else if (versionMinor < VERSION_MINOR_CURRENT) {
-        // We're upgrading - apply the neccessary upgrades from each interim version
+        // We're upgrading - apply the necessary upgrades from each interim version
         // curVersion will never equal VERSION_MINOR_CURRENT, as it represents the version before
         // the most recent applySettingsMigration() call.
         for (uint curVersion = versionMinor; curVersion < VERSION_MINOR_CURRENT; curVersion++) {