Skip to content
Commit 80adf24c authored by Wolfgang Bauer's avatar Wolfgang Bauer
Browse files

Set window icon in code instead of in the desktop file

%i is expanded to "--icon xxx", but Qt only supports that option on
xcb, not Wayland. Therefore kget couldn't be started from the
application launcher/menu on Wayland.
See https://community.kde.org/Guidelines_and_HOWTOs/Wayland_Porting_Notes#Application_Icon .

Instead, use QApplication::setWindowIcon() to set the window icon
(necessary to have a window icon on other desktops than Plasma). This
also has the advantage that the proper window icon is set when running
kget from a shell (and not passing the --icon or -qwindowicon options).

BUG: 400367
FIXED-IN: 18.12.1
parent c5c3eb06
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment