Fix another g_log warning
authorColin Leroy <colin@colino.net>
Thu, 11 Feb 2016 09:33:10 +0000 (10:33 +0100)
committerColin Leroy <colin@colino.net>
Thu, 11 Feb 2016 09:33:10 +0000 (10:33 +0100)
src/account.c

index bc3e5b4..58dfab9 100644 (file)
@@ -375,6 +375,9 @@ GList *account_get_list(void)
 
 void account_edit_focus(void)
 {
+       if (edit_account.window == NULL) {
+               return;
+       }
        manage_window_set_transient(GTK_WINDOW(edit_account.window));
        gtk_widget_grab_focus(edit_account.close_btn);
        gtk_widget_show(edit_account.window);