X-Git-Url: http://git.maemo.org/git/?p=modest;a=blobdiff_plain;f=src%2Fmodest-tny-account-store.c;h=26543a62a266c33050636308a41d629cfc35d8eb;hp=f78d7bb63f8f350c1093d5c75ed3ab8cc0ffdb2c;hb=4bde58a2979e9fa1869aa9fa720a9417b7373982;hpb=d1ab65c108a7183279254ed2babd1bf3c96e2aed diff --git a/src/modest-tny-account-store.c b/src/modest-tny-account-store.c index f78d7bb..26543a6 100644 --- a/src/modest-tny-account-store.c +++ b/src/modest-tny-account-store.c @@ -478,17 +478,18 @@ show_wrong_password_dialog (TnyAccount *account, /* Create and show the dialog */ if (proto && MODEST_IS_ACCOUNT_PROTOCOL (proto)) { - GtkWindow *parent; - ModestWindowMgr *mgr = modest_runtime_get_window_mgr (); ModestAccountSettingsDialog *dialog = modest_account_protocol_get_account_settings_dialog (proto, modest_account_name); - parent = modest_window_mgr_get_modal (mgr); - if (!parent) - parent = (GtkWindow *) modest_window_mgr_get_current_top (mgr); + if (dialog) { + ModestWindowMgr *mgr = modest_runtime_get_window_mgr (); + GtkWindow *parent = modest_window_mgr_get_modal (mgr); + if (!parent) + parent = (GtkWindow *) modest_window_mgr_get_current_top (mgr); - modest_window_mgr_set_modal (mgr, GTK_WINDOW (dialog), parent); - gtk_widget_show (GTK_WIDGET (dialog)); + modest_window_mgr_set_modal (mgr, GTK_WINDOW (dialog), parent); + gtk_widget_show (GTK_WIDGET (dialog)); + } } } /* Show an explanatory temporary banner: */