src/gui.cc

changeset 563
10939452bf86
parent 561
1d90296ad3fc
child 566
549c63863544
--- a/src/gui.cc	Wed Dec 18 20:43:50 2013 +0200
+++ b/src/gui.cc	Wed Dec 18 23:38:45 2013 +0200
@@ -863,11 +863,7 @@
 	f->getListItem()->setIcon (f->hasUnsavedChanges() ? getIcon ("file-save") : QIcon());
 }
 
-void ForgeWindow::beginAction (QAction* act)
-{	// Open the history so we can record the edits done during this action.
-	if (act == ui->actionUndo || act == ui->actionRedo || act == ui->actionOpen)
-		getCurrentDocument()->getHistory()->setIgnoring (true);
-}
+void ForgeWindow::beginAction (QAction* act) {}
 
 void ForgeWindow::endAction()
 {	// Close the history now.
@@ -876,9 +872,6 @@
 	// Update the list item of the current file - we may need to draw an icon
 	// now that marks it as having unsaved changes.
 	updateDocumentListItem (getCurrentDocument());
-
-	// We're done with the action, the history should stop ignoring now.
-	getCurrentDocument()->getHistory()->setIgnoring (false);
 }
 
 // =============================================================================

mercurial