From 4886df159efaad165905e8c5c84df362f771546c Mon Sep 17 00:00:00 2001 From: hiro Date: Tue, 15 Nov 2005 08:10:58 +0000 Subject: popup main window if edit account dialog is not present. git-svn-id: svn://sylpheed.sraoss.jp/sylpheed/trunk@747 ee746299-78ed-0310-b773-934348b2243d --- src/account_dialog.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src/account_dialog.c') diff --git a/src/account_dialog.c b/src/account_dialog.c index 910e35c1..c93ff11e 100644 --- a/src/account_dialog.c +++ b/src/account_dialog.c @@ -207,7 +207,10 @@ void account_open(PrefsAccount *ac_prefs) return); prefs_account_open(ac_prefs); - gtk_window_present(GTK_WINDOW(edit_account.window)); + if (edit_account.window && GTK_WIDGET_VISIBLE(edit_account.window)) + gtk_window_present(GTK_WINDOW(edit_account.window)); + else + main_window_popup(main_window_get()); if (!prev_default && ac_prefs->is_default) account_set_as_default(ac_prefs); -- cgit v1.2.3