diff options
author | saturneric <[email protected]> | 2024-04-21 19:49:04 +0000 |
---|---|---|
committer | saturneric <[email protected]> | 2024-04-21 19:49:04 +0000 |
commit | 571a2906063739067e40a02aadd8c265082359de (patch) | |
tree | 5ac57f777ec38f6a5f328da4e3df6ad6cc010aff /src/ui/GpgFrontendApplication.cpp | |
parent | fix: could not determine the path to the executable based on the desktop file (diff) | |
parent | feat: adapt linux appimage of modules loading (diff) | |
download | GpgFrontend-571a2906063739067e40a02aadd8c265082359de.tar.gz GpgFrontend-571a2906063739067e40a02aadd8c265082359de.zip |
Merge branch 'dev/2.1.2/module' into develop
Diffstat (limited to '')
-rw-r--r-- | src/ui/GpgFrontendApplication.cpp | 17 |
1 files changed, 7 insertions, 10 deletions
diff --git a/src/ui/GpgFrontendApplication.cpp b/src/ui/GpgFrontendApplication.cpp index c832ffe0..b3c12de6 100644 --- a/src/ui/GpgFrontendApplication.cpp +++ b/src/ui/GpgFrontendApplication.cpp @@ -28,9 +28,7 @@ #include "ui/GpgFrontendApplication.h" -#include <QTextCodec> - -#include "GpgFrontendBuildInfo.h" +#include "core/utils/BuildInfoUtils.h" namespace GpgFrontend::UI { @@ -42,17 +40,16 @@ GpgFrontendApplication::GpgFrontendApplication(int &argc, char *argv[]) #endif // set the extra information of the build - GpgFrontendApplication::setApplicationVersion(BUILD_VERSION); - GpgFrontendApplication::setApplicationName(PROJECT_NAME); - GpgFrontendApplication::setApplicationDisplayName(PROJECT_NAME); - GpgFrontendApplication::setOrganizationName(PROJECT_NAME); + GpgFrontendApplication::setApplicationVersion(GetProjectBuildVersion()); + GpgFrontendApplication::setApplicationName(QString::fromUtf8((PROJECT_NAME))); + GpgFrontendApplication::setApplicationDisplayName( + QString::fromUtf8((PROJECT_NAME))); + GpgFrontendApplication::setOrganizationName( + QString::fromUtf8((PROJECT_NAME))); GpgFrontendApplication::setQuitOnLastWindowClosed(true); // don't show icons in menus GpgFrontendApplication::setAttribute(Qt::AA_DontShowIconsInMenus); - - // unicode in source - QTextCodec::setCodecForLocale(QTextCodec::codecForName("utf-8")); } bool GpgFrontendApplication::notify(QObject *receiver, QEvent *event) { |