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:
parent
8cb41745c2
commit
a60a63cc39
@ -3,6 +3,9 @@
|
|||||||
* src/keybindings.c, THANKS:
|
* src/keybindings.c, THANKS:
|
||||||
Apply patch from Lex Trotman to make 'Reflow block/lines(s)'
|
Apply patch from Lex Trotman to make 'Reflow block/lines(s)'
|
||||||
keybinding use line breaking column when enabled.
|
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>
|
2009-09-22 Nick Treleaven <nick(dot)treleaven(at)btinternet(dot)com>
|
||||||
|
@ -1231,6 +1231,10 @@ GeanyDocument *document_open_file_full(GeanyDocument *doc, const gchar *filename
|
|||||||
if (doc != NULL)
|
if (doc != NULL)
|
||||||
{
|
{
|
||||||
ui_add_recent_file(utf8_filename); /* either add or reorder recent item */
|
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 */
|
document_check_disk_status(doc, TRUE); /* force a file changed check */
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user