mirror of
https://github.com/gryf/wmaker.git
synced 2025-12-21 21:38:00 +01:00
Fixed crashing bug in WPrefs.app's appereance section.
This commit is contained in:
@@ -1970,7 +1970,8 @@ setupTextureFor(WMList *list, char *key, char *defValue, char *title,
|
|||||||
|
|
||||||
titem->title = wstrdup(title);
|
titem->title = wstrdup(title);
|
||||||
titem->prop = GetObjectForKey(key);
|
titem->prop = GetObjectForKey(key);
|
||||||
if (!titem->prop) {
|
if (!titem->prop || !PLIsArray(titem->prop)) {
|
||||||
|
/* Maybe also give a error message to stderr that the entry is bad? */
|
||||||
titem->prop = PLGetProplistWithDescription(defValue);
|
titem->prop = PLGetProplistWithDescription(defValue);
|
||||||
} else {
|
} else {
|
||||||
PLRetain(titem->prop);
|
PLRetain(titem->prop);
|
||||||
|
|||||||
Reference in New Issue
Block a user