wIconChangeImageFile don't update without file
commit156d8ebfa52a66f2634a3668dcad1b97e9392f02
authorRodolfo García Peñas (kix) <kix@kix.es>
Wed, 31 Oct 2012 21:44:17 +0000 (31 22:44 +0100)
committerCarlos R. Mafra <crmafra@gmail.com>
Wed, 31 Oct 2012 22:24:27 +0000 (31 22:24 +0000)
treef159fc17db2f60cf1d6fab71e6b370d5cd40dfdf
parent280e1e099d1e5998e76251b0d4bfb6fa657968de
wIconChangeImageFile don't update without file

The function wIconChangeImageFile mustn't update the icon if
no file is set.

This is a bug. To reproduce it:

1. Right click on dock icon. Select "Settings"
2. Erase the Icon Image contents (set empty)
3. Click "OK" -> Exit, no changes... no?
4. Right click on the same dock icon. Select "Settings"
5. Erase the Icon Image contents (set empty)
6. Click "OK" -> Crash

If wmaker don't crash, watch the file ~/GNUstep/Defaults/WMWindowAttributes,
the default icon ("*" has trash in the name). Probably something is not fine
at wIconUpdate.
src/icon.c