diff options
author | Saturn&Eric <[email protected]> | 2025-04-30 15:48:47 +0000 |
---|---|---|
committer | GitHub <[email protected]> | 2025-04-30 15:48:47 +0000 |
commit | b927f57e5765bb9777e98f114e43541da9a36256 (patch) | |
tree | 31f19c535a32989bd2f8d213644cfba082d86b8a /src/ui/GpgFrontendApplication.cpp | |
parent | Merge pull request #209 from x86txt/fix-linux-dark-mode-qt6 (diff) | |
parent | rpm_works (diff) | |
download | GpgFrontend-b927f57e5765bb9777e98f114e43541da9a36256.tar.gz GpgFrontend-b927f57e5765bb9777e98f114e43541da9a36256.zip |
Merge pull request #212 from Anthony-Lloyd/main
fix for compiling and packaging for fedora42
Diffstat (limited to 'src/ui/GpgFrontendApplication.cpp')
-rw-r--r-- | src/ui/GpgFrontendApplication.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/ui/GpgFrontendApplication.cpp b/src/ui/GpgFrontendApplication.cpp index 271c8e57..961d1194 100644 --- a/src/ui/GpgFrontendApplication.cpp +++ b/src/ui/GpgFrontendApplication.cpp @@ -35,8 +35,9 @@ namespace GpgFrontend::UI { GpgFrontendApplication::GpgFrontendApplication(int &argc, char *argv[]) : QApplication(argc, argv) { #if !(defined(__APPLE__) && defined(__MACH__)) - GpgFrontend::UI::GpgFrontendApplication::setWindowIcon( - QIcon(":/icons/gpgfrontend.png")); + // Try system theme icon first, fall back to resource + QIcon appIcon = QIcon::fromTheme("gpgfrontend", QIcon(":/icons/gpgfrontend.png")); + GpgFrontend::UI::GpgFrontendApplication::setWindowIcon(appIcon); #endif QString application_display_name = GetProjectName(); |