[pitivi] timeline: Fix call to be done once
- From: Alexandru Băluț <alexbalut src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [pitivi] timeline: Fix call to be done once
- Date: Fri, 12 Aug 2016 18:43:30 +0000 (UTC)
commit 810942b049dc3749dff70ec496450fd6fd8d4342
Author: Alexandru Băluț <alexandru balut gmail com>
Date: Tue Aug 9 00:13:56 2016 +0200
timeline: Fix call to be done once
Reviewed-by: Thibault Saunier <tsaunier gnome org>
Differential Revision: https://phabricator.freedesktop.org/D1268
pitivi/utils/timeline.py | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/pitivi/utils/timeline.py b/pitivi/utils/timeline.py
index cb3076f..9ab7c78 100644
--- a/pitivi/utils/timeline.py
+++ b/pitivi/utils/timeline.py
@@ -122,9 +122,9 @@ class Selection(GObject.Object, Loggable):
for obj in old_selection - self.selected:
obj.selected.selected = False
+ if obj.ui:
+ ui.unset_children_state_recurse(obj.ui, Gtk.StateFlags.SELECTED)
for element in obj.get_children(False):
- if obj.ui:
- ui.unset_children_state_recurse(obj.ui, Gtk.StateFlags.SELECTED)
if not isinstance(element, GES.BaseEffect) and not isinstance(element, GES.TextOverlay):
element.selected.selected = False
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]