diff options
author | hiro <hiro@ee746299-78ed-0310-b773-934348b2243d> | 2005-11-15 08:10:58 +0000 |
---|---|---|
committer | hiro <hiro@ee746299-78ed-0310-b773-934348b2243d> | 2005-11-15 08:10:58 +0000 |
commit | 4886df159efaad165905e8c5c84df362f771546c (patch) | |
tree | 7ed86443105862b9e22e5927e35d25045c365016 /src | |
parent | def93bc442e25ecec02ac51ea25431055fbfc458 (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')
-rw-r--r-- | src/account_dialog.c | 5 |
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); |