[pitivi] undo: clean the log when a project is closed.



commit 77935f0f6f82fbadc9394d92db6f12e6d18eaf62
Author: Alessandro Decina <alessandro d gmail com>
Date:   Thu Jun 11 13:32:14 2009 +0200

    undo: clean the log when a project is closed.

 pitivi/application.py |    1 +
 pitivi/undo.py        |    3 +++
 2 files changed, 4 insertions(+), 0 deletions(-)
---
diff --git a/pitivi/application.py b/pitivi/application.py
index 665f73e..57b01c6 100644
--- a/pitivi/application.py
+++ b/pitivi/application.py
@@ -200,6 +200,7 @@ class Pitivi(Loggable, Signallable):
         return self.emit("closing-project", project)
 
     def _projectManagerProjectClosed(self, projectManager, project):
+        self.action_log.clean()
         self.timelineLogObserver.stopObserving(project.timeline)
         self.current = None
         self.emit("project-closed", project)
diff --git a/pitivi/undo.py b/pitivi/undo.py
index da3eca0..dfa3cfc 100644
--- a/pitivi/undo.py
+++ b/pitivi/undo.py
@@ -41,6 +41,9 @@ class UndoableAction(Signallable):
     def undo(self):
         raise NotImplementedError()
 
+    def clean(self):
+        pass
+
     def _done(self):
         self.emit("done")
 



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]