SF.net SVN: geany: [797] trunk/src/document.c
eht16 at users.sourceforge.net
eht16 at xxxxx
Wed Sep 6 18:26:15 UTC 2006
Revision: 797
http://svn.sourceforge.net/geany/?rev=797&view=rev
Author: eht16
Date: 2006-09-06 11:26:08 -0700 (Wed, 06 Sep 2006)
Log Message:
-----------
Fixed wrong function call order when removing documents.
Modified Paths:
--------------
trunk/src/document.c
Modified: trunk/src/document.c
===================================================================
--- trunk/src/document.c 2006-09-06 17:53:58 UTC (rev 796)
+++ trunk/src/document.c 2006-09-06 18:26:08 UTC (rev 797)
@@ -330,8 +330,6 @@
g_free(doc_list[idx].encoding);
g_free(doc_list[idx].file_name);
tm_workspace_remove_object(doc_list[idx].tm_file, TRUE);
- document_undo_clear(idx);
- document_redo_clear(idx);
doc_list[idx].is_valid = FALSE;
doc_list[idx].sci = NULL;
doc_list[idx].file_name = NULL;
@@ -339,6 +337,8 @@
doc_list[idx].encoding = NULL;
doc_list[idx].has_bom = FALSE;
doc_list[idx].tm_file = NULL;
+ document_undo_clear(idx);
+ document_redo_clear(idx);
if (gtk_notebook_get_n_pages(GTK_NOTEBOOK(app->notebook)) == 0)
{
ui_update_tag_list(-1, FALSE);
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
More information about the Commits
mailing list