aboutsummaryrefslogtreecommitdiff
path: root/src/account_dialog.c
diff options
context:
space:
mode:
authorhiro <hiro@ee746299-78ed-0310-b773-934348b2243d>2005-11-15 08:10:58 +0000
committerhiro <hiro@ee746299-78ed-0310-b773-934348b2243d>2005-11-15 08:10:58 +0000
commit4886df159efaad165905e8c5c84df362f771546c (patch)
tree7ed86443105862b9e22e5927e35d25045c365016 /src/account_dialog.c
parentdef93bc442e25ecec02ac51ea25431055fbfc458 (diff)
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
Diffstat (limited to 'src/account_dialog.c')
-rw-r--r--src/account_dialog.c5
1 files changed, 4 insertions, 1 deletions
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);