From 5eba91c37b0fdcd1eb5a905477cc98dc1c6d15d9 Mon Sep 17 00:00:00 2001 From: Danielle Madeley Date: Thu, 3 Jun 2010 17:59:44 +1000 Subject: [PATCH] Only create the EmpathyAccountsDialog if required https://bugzilla.gnome.org/show_bug.cgi?id=616616 --- src/empathy-accounts-common.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/empathy-accounts-common.c b/src/empathy-accounts-common.c index c6c18e83..a214f284 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); -- 2.39.2