Re: How to mark a project as modified?
Marco Diego Aurélio Mesquita <[email protected]> Sun, 28 Feb 2010 20:35:45 -0300
| Newsgroups | gmane.comp.gnome.glade.devel |
|---|---|
| Message-ID | <[email protected]> |
Attached is a patch that fixes the issue. I know that the best place for it would be the bugzilla, but it is such a trivial patch that I see no problem in accepting it from here. Thanks! _______________________________________________ Glade-devel maillist - [email protected] http://lists.ximian.com/mailman/listinfo/glade-devel
patch.diff
(text/x-patch, 759 B)
diff --git a/gladeui/glade-project.c b/gladeui/glade-project.c
index cb144b7..599bec4 100644
--- a/gladeui/glade-project.c
+++ b/gladeui/glade-project.c
@@ -517,12 +517,14 @@ glade_project_push_undo_impl (GladeProject *project, GladeCommand *cmd)
priv->undo_stack = NULL;
}
- /* Try to unify only if group depth is 0 */
+ /* Try to unify only if group depth is 0 and the project has not been recently saved*/
if (glade_command_get_group_depth() == 0 &&
- priv->prev_redo_item != NULL)
+ priv->prev_redo_item != NULL &&
+ project->priv->prev_redo_item != project->priv->first_modification)
{
GladeCommand *cmd1 = priv->prev_redo_item->data;
+
if (glade_command_unifies (cmd1, cmd))
{
glade_command_collapse (cmd1, cmd);