.ico files work fine, so we should allow them to be chosen in the custom icon file chooser dialog.
BUG: 233201
FIXED-IN: 5.48
cfeck |
Frameworks |
.ico files work fine, so we should allow them to be chosen in the custom icon file chooser dialog.
BUG: 233201
FIXED-IN: 5.48
Automatic diff as part of commit; lint not applicable. |
Automatic diff as part of commit; unit tests not applicable. |
But does it actually work? Our icon loader removes the extension, and tries to find the icon with a set of known extensions (grep -i xpm in kiconloader.cpp).
It does actually work; I tried it. The bug reporter also reported that it worked for him too if he manually entered the path to a .ico file.
I think if you pass a completely custom icon to it an absolute path will be looked up and as a result this (unintentionally) works
I was thinking if we need general support for .ico files on Windows, but fear a slowdown while lookup of theme icons. But if this works for the special case of full-path icons, we can revisit the issue once/if we get a separate ticket.