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) authored and Carlos R. Mafra committed 2012-11-29 09:30:25 +00:00
1 parent 99e5a7a9eb
commit e206f471fe
1 file changed
+3 -1
+3 -1
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);