aboutsummaryrefslogtreecommitdiffstats
path: root/src/modules
diff options
context:
space:
mode:
authorGravatar Reilly Brogan2024-07-12 01:55:21 -0500
committerGravatar GitHub2024-07-12 08:55:21 +0200
commite7f1affa15f9280d728e995fd76e0234b34b89ee (patch)
tree9fd4074f6ef69b0ebc377bb979de51d7982232f6 /src/modules
parentupdate azzurra.org -> azzurra.chat (#2651) (diff)
downloadKVIrc-e7f1affa15f9280d728e995fd76e0234b34b89ee.tar.gz
KVIrc-e7f1affa15f9280d728e995fd76e0234b34b89ee.tar.bz2
KVIrc-e7f1affa15f9280d728e995fd76e0234b34b89ee.zip
Force app_id to be set in more places (#2661)
While testing the new version of kvirc I noticed that the setup window was using the `net.kvirc.kvirc` app_id. It seems my previous fix was incomplete since that window is started before the other window where we set the app_id. Fix it by adding it to the setup window as well, and also just add it to a bunch more locations so that the chances of it not being set elsewhere are lower.
Diffstat (limited to 'src/modules')
-rw-r--r--src/modules/setup/SetupWizard.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/modules/setup/SetupWizard.cpp b/src/modules/setup/SetupWizard.cpp
index 67a7dcdba..86cfbe2dd 100644
--- a/src/modules/setup/SetupWizard.cpp
+++ b/src/modules/setup/SetupWizard.cpp
@@ -142,6 +142,9 @@ SetupWizard::SetupWizard()
QString szImagePath;
g_pApp->getGlobalKvircDirectory(szImagePath, KviApplication::Pics, "kvi_setup_label.png");
+ // set name of the app desktop file; used by wayland to load the window icon
+ QGuiApplication::setDesktopFileName("net.kvirc.KVIrc" KVIRC_VERSION_MAJOR);
+
m_pLabelPixmap = new QPixmap(szImagePath);
if(m_pLabelPixmap->isNull())
{