Skip to content
Snippets Groups Projects
Commit 19af062a authored by Tristan Matthews's avatar Tristan Matthews
Browse files

* #19867: gnome: always refresh account list on account updates

parent 60974328
Branches
Tags
No related merge requests found
...@@ -114,12 +114,15 @@ static void delete_account_cb(G_GNUC_UNUSED GtkButton *button, gpointer data) ...@@ -114,12 +114,15 @@ static void delete_account_cb(G_GNUC_UNUSED GtkButton *button, gpointer data)
g_free(selected_accountID); g_free(selected_accountID);
} }
static void account_store_fill();
static void static void
run_account_dialog(const gchar *selected_accountID, SFLPhoneClient *client) run_account_dialog(const gchar *selected_accountID, SFLPhoneClient *client)
{ {
account_t *account = account_list_get_by_id(selected_accountID); account_t *account = account_list_get_by_id(selected_accountID);
GtkWidget *dialog = show_account_window(account, client); GtkWidget *dialog = show_account_window(account, client);
update_account_from_dialog(dialog, account); update_account_from_dialog(dialog, account);
account_store_fill();
} }
static void row_activated_cb(GtkTreeView *view, static void row_activated_cb(GtkTreeView *view,
...@@ -197,7 +200,6 @@ static void add_account_cb(SFLPhoneClient *client) ...@@ -197,7 +200,6 @@ static void add_account_cb(SFLPhoneClient *client)
account_t *new_account = create_default_account(); account_t *new_account = create_default_account();
account_list_add(new_account); account_list_add(new_account);
run_account_dialog(new_account->accountID, client); run_account_dialog(new_account->accountID, client);
account_store_fill();
} }
/** /**
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment