diff options
author | Anthony Lloyd <[email protected]> | 2025-04-30 05:18:11 +0000 |
---|---|---|
committer | Anthony Lloyd <[email protected]> | 2025-04-30 05:18:11 +0000 |
commit | e57423f61429f734c48bc592c5c3d9642cde84aa (patch) | |
tree | 31f19c535a32989bd2f8d213644cfba082d86b8a /src/ui/GpgFrontendApplication.cpp | |
parent | fix cpack for fedora (diff) | |
download | GpgFrontend-e57423f61429f734c48bc592c5c3d9642cde84aa.tar.gz GpgFrontend-e57423f61429f734c48bc592c5c3d9642cde84aa.zip |
rpm_works
Diffstat (limited to '')
-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(); |