[pitivi] Fix removal of clips from the sourcelist.
- From: Edward Hervey <edwardrv src gnome org>
- To: svn-commits-list gnome org
- Subject: [pitivi] Fix removal of clips from the sourcelist.
- Date: Mon, 29 Jun 2009 10:32:07 +0000 (UTC)
commit 187893aa125751937b55a6689e6e7d25899e2cf7
Author: Alessandro Decina <alessandro d gmail com>
Date: Fri Jun 26 14:51:49 2009 +0200
Fix removal of clips from the sourcelist.
pitivi/sourcelist_undo.py | 4 ++--
pitivi/ui/sourcelist.py | 2 +-
2 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/pitivi/sourcelist_undo.py b/pitivi/sourcelist_undo.py
index b1ada4c..891cf8b 100644
--- a/pitivi/sourcelist_undo.py
+++ b/pitivi/sourcelist_undo.py
@@ -41,11 +41,11 @@ class SourceListSourceRemovedAction(UndoableAction):
self.source = source
def undo(self):
- self.sourcelist.addFactory(self.source.uri, self.source)
+ self.sourcelist.addFactory(self.source)
self._undone()
def do(self):
- del self.sourcelist[self.source.uri]
+ self.sourcelist.removeUri(self.source.uri)
self._done()
class SourceListLogObserver(object):
diff --git a/pitivi/ui/sourcelist.py b/pitivi/ui/sourcelist.py
index eb73d8f..b1ffa63 100644
--- a/pitivi/ui/sourcelist.py
+++ b/pitivi/ui/sourcelist.py
@@ -551,7 +551,7 @@ class SourceList(gtk.VBox, Loggable):
selected.sort(reverse=True)
for path in selected:
uri = model[path][COL_URI]
- self.app.removeUri(uri)
+ self.app.current.sources.removeUri(uri)
## UI Button callbacks
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]