[pitivi] elements: Don't try to cleanup Clutter.Actors.
- From: Thibault Saunier <tsaunier src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [pitivi] elements: Don't try to cleanup Clutter.Actors.
- Date: Fri, 27 Sep 2013 20:07:58 +0000 (UTC)
commit 53bf0165c27318aa73f379239827ba161f39a1e1
Author: Mathieu Duponchelle <mathieu duponchelle epitech eu>
Date: Fri Sep 27 01:07:55 2013 +0200
elements: Don't try to cleanup Clutter.Actors.
pitivi/timeline/elements.py | 5 ++++-
1 files changed, 4 insertions(+), 1 deletions(-)
---
diff --git a/pitivi/timeline/elements.py b/pitivi/timeline/elements.py
index 3544d71..4fb183d 100644
--- a/pitivi/timeline/elements.py
+++ b/pitivi/timeline/elements.py
@@ -1137,7 +1137,10 @@ class URISourceElement(TimelineElement):
def cleanup(self):
if self.preview:
- self.preview.cleanup()
+ try:
+ self.preview.cleanup()
+ except AttributeError: # preview was just an actor.
+ pass
self.leftHandle.cleanup()
self.leftHandle = None
self.rightHandle.cleanup()
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]