If the filter property on the entry is NULL the entry is now hidden instead of causing a crash
This commit is contained in:
parent
a499c1cacd
commit
76d77a43ec
@ -451,6 +451,9 @@ static gboolean do_filter(GtkListBoxRow* row, gpointer data) {
|
|||||||
if(filter == NULL || strcmp(filter, "") == 0) {
|
if(filter == NULL || strcmp(filter, "") == 0) {
|
||||||
return TRUE;
|
return TRUE;
|
||||||
}
|
}
|
||||||
|
if(text == NULL) {
|
||||||
|
return FALSE;
|
||||||
|
}
|
||||||
if(strcasestr(text, filter) != NULL) {
|
if(strcasestr(text, filter) != NULL) {
|
||||||
return TRUE;
|
return TRUE;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user