https://bugzilla.gnome.org/show_bug.cgi?id=616616
TpAccount *account,
GCallback window_destroyed_cb)
{
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);
if (window_destroyed_cb)
g_signal_connect (accounts_window, "destroy", window_destroyed_cb, NULL);