Show indicator when form has unsaved changes

This commit is contained in:
James Booth
2014-09-16 22:23:59 +01:00
parent ef8b8e637d
commit 16acb52ca3
3 changed files with 15 additions and 10 deletions

View File

@@ -81,7 +81,11 @@ wins_get_console(void)
ProfWin *
wins_get_current(void)
{
return g_hash_table_lookup(windows, GINT_TO_POINTER(current));
if (windows != NULL) {
return g_hash_table_lookup(windows, GINT_TO_POINTER(current));
} else {
return NULL;
}
}
GList *