GTK3: placeview drag drop, avoid crash on drag of a place leave from treeview

svn: r20105
This commit is contained in:
Benny Malengier
2012-07-27 14:38:52 +00:00
parent a3c7409bcd
commit f21dd31e91
2 changed files with 11 additions and 1 deletions

View File

@@ -463,6 +463,10 @@ class ListView(NavigationView):
for handle in selected_ids],
0)
sel_data.set(self.drag_list_info().atom_drag_type, 8, pickle.dumps(data))
else:
# pass empty
data = (self.drag_info().drag_type, id(self), [], 0)
sel_data.set(self.drag_list_info().atom_drag_type, 8, pickle.dumps(data))
def set_column_order(self):
"""