Skip to content

Commit

Permalink
Make sure the current document is still the same after Save All
Browse files Browse the repository at this point in the history
Save All updates the sidebar and title bar with the document that was
the current one when the action was triggered, but the action could
have changed the focused document if an non-file-backed file required
saving.  So, make sure current document is the same after the action.
  • Loading branch information
b4n committed Jun 26, 2014
1 parent 721769e commit 6c80488
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/callbacks.c
Expand Up @@ -201,6 +201,7 @@ G_MODULE_EXPORT void on_save_all1_activate(GtkMenuItem *menuitem, gpointer user_

ui_set_statusbar(FALSE, ngettext("%d file saved.", "%d files saved.", count), count);
/* saving may have changed window title, sidebar for another doc, so update */
document_show_tab(cur_doc);
sidebar_update_tag_list(cur_doc, TRUE);
ui_set_window_title(cur_doc);
}
Expand Down

0 comments on commit 6c80488

Please sign in to comment.