[pitivi] medialibrary: Clean draggedPath on button-release on the library widget



commit ee93f8b0bd841596545c8fd463c2718d48713432
Author: Thibault Saunier <tsaunier gnome org>
Date:   Tue Jun 21 08:59:03 2016 -0400

    medialibrary: Clean draggedPath on button-release on the library widget
    
    Reviewed-by: Alex Băluț <alexandru balut gmail com>
    Differential Revision: https://phabricator.freedesktop.org/D1101

 pitivi/medialibrary.py |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/pitivi/medialibrary.py b/pitivi/medialibrary.py
index 3e7f1cb..36dfd70 100644
--- a/pitivi/medialibrary.py
+++ b/pitivi/medialibrary.py
@@ -1345,6 +1345,7 @@ class MediaLibraryWidget(Gtk.Box, Loggable):
             self._draggedPaths = None
 
     def _treeViewButtonReleaseEventCb(self, treeview, event):
+        self._draggedPaths = None
         selection = self.treeview.get_selection()
         state = event.get_state() & (
             Gdk.ModifierType.CONTROL_MASK | Gdk.ModifierType.SHIFT_MASK)
@@ -1394,6 +1395,8 @@ class MediaLibraryWidget(Gtk.Box, Loggable):
         return True
 
     def _iconViewButtonReleaseEventCb(self, iconview, event):
+        self._draggedPaths = None
+
         control_mask = event.get_state() & Gdk.ModifierType.CONTROL_MASK
         shift_mask = event.get_state() & Gdk.ModifierType.SHIFT_MASK
         modifier_active = control_mask or shift_mask


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