aboutsummaryrefslogtreecommitdiffstats
path: root/src/empathy-accounts-common.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/empathy-accounts-common.c')
-rw-r--r--src/empathy-accounts-common.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/empathy-accounts-common.c b/src/empathy-accounts-common.c
index c6c18e834..a214f284a 100644
--- a/src/empathy-accounts-common.c
+++ b/src/empathy-accounts-common.c
@@ -101,9 +101,10 @@ do_show_accounts_ui (TpAccountManager *manager,
TpAccount *account,
GCallback window_destroyed_cb)
{
- GtkWidget *accounts_window;
+ static GtkWidget *accounts_window = NULL;
- accounts_window = empathy_accounts_dialog_show (NULL, account);
+ if (accounts_window == NULL)
+ accounts_window = empathy_accounts_dialog_show (NULL, account);
if (window_destroyed_cb)
g_signal_connect (accounts_window, "destroy", window_destroyed_cb, NULL);