1
0
mirror of https://github.com/gryf/wmaker.git synced 2025-12-19 20:38:08 +01:00

winspector: Don't use text input if NULL

This patch don't use the text input for the file if is empty.
The function should use the function to get the icon provided
by the client.
This commit is contained in:
Rodolfo García Peñas (kix)
2012-11-28 22:50:51 +01:00
committed by Carlos R. Mafra
parent 99e5a7a9eb
commit e206f471fe

View File

@@ -736,7 +736,9 @@ static void applySettings(WMButton *button, InspectorPanel *panel)
file = NULL; file = NULL;
} }
if (WFLAGP(wwin, always_user_icon)) { /* If file is NULL, the always_user_icon doesn't matter,
* because we need to read the icon from the window */
if (file && WFLAGP(wwin, always_user_icon)) {
/* Change icon image if the app is minimized */ /* Change icon image if the app is minimized */
if (wwin->icon) if (wwin->icon)
wIconChangeImageFile(wwin->icon, file); wIconChangeImageFile(wwin->icon, file);