Fix showing the document before reload dialog when opening an

already-open file.



git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@4232 ea778897-0a13-0410-b9d1-a72fbfd435f5
This commit is contained in:
Nick Treleaven 2009-09-24 16:19:27 +00:00
parent 8cb41745c2
commit a60a63cc39
2 changed files with 7 additions and 0 deletions

View File

@ -3,6 +3,9 @@
* src/keybindings.c, THANKS:
Apply patch from Lex Trotman to make 'Reflow block/lines(s)'
keybinding use line breaking column when enabled.
* src/document.c:
Fix showing the document before reload dialog when opening an
already-open file.
2009-09-22 Nick Treleaven <nick(dot)treleaven(at)btinternet(dot)com>

View File

@ -1231,6 +1231,10 @@ GeanyDocument *document_open_file_full(GeanyDocument *doc, const gchar *filename
if (doc != NULL)
{
ui_add_recent_file(utf8_filename); /* either add or reorder recent item */
/* show the doc before reload dialog */
gtk_notebook_set_current_page(GTK_NOTEBOOK(main_widgets.notebook),
gtk_notebook_page_num(GTK_NOTEBOOK(main_widgets.notebook),
(GtkWidget*) doc->editor->sci));
document_check_disk_status(doc, TRUE); /* force a file changed check */
}
}