gui: when glade widget is not found, print the string id before aborting
This commit is contained in:
parent
6b7103ead6
commit
185034b263
|
@ -70,7 +70,11 @@ GtkWidget * get_glade_widget(const char * name)
|
|||
|
||||
ptr = GTK_WIDGET(glade_xml_get_widget(g_glade, name));
|
||||
|
||||
ASSERT(ptr != NULL);
|
||||
if (ptr == NULL)
|
||||
{
|
||||
log_error("glade object with id '%s' not found", name);
|
||||
ASSERT_NO_PASS;
|
||||
}
|
||||
|
||||
return ptr;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue