Make accelmap initialization more forgiving

This commit is contained in:
Matthias Clasen
2011-12-03 19:35:27 -05:00
committed by Ryan Lortie
parent 7ef340fb87
commit f119c834c1

View File

@ -179,8 +179,7 @@ accel_path_lookup (const gchar *accel_path)
void
_gtk_accel_map_init (void)
{
g_assert (accel_entry_ht == NULL);
if (accel_entry_ht == NULL)
accel_entry_ht = g_hash_table_new (accel_entry_hash, accel_entry_equal);
}