* src/DataViews/_MediaView.py: cancel drag-n-drop if list is empty
* src/PageView.py: cancel drag-n-drop if list is empty svn: r7571
This commit is contained in:
parent
069dcbcd35
commit
dafa578420
@ -1,4 +1,6 @@
|
||||
2006-11-06 Don Allingham <don@gramps-project.org>
|
||||
* src/DataViews/_MediaView.py: cancel drag-n-drop if list is empty
|
||||
* src/PageView.py: cancel drag-n-drop if list is empty
|
||||
* src/ViewManager.py (ViewManager.about): destroy About dialog
|
||||
after running
|
||||
* src/Editors/_EditPerson.py: Change Unknown Gender dialog to allow
|
||||
|
@ -130,7 +130,7 @@ class MediaView(PageView.ListView):
|
||||
"""
|
||||
|
||||
selected_ids = self.selected_handles()
|
||||
|
||||
if selected_ids:
|
||||
data = (self.drag_info().drag_type, id(self), selected_ids[0], 0)
|
||||
sel_data.set(sel_data.target, 8 ,pickle.dumps(data))
|
||||
|
||||
|
@ -575,8 +575,8 @@ class ListView(BookMarkView):
|
||||
def drag_data_get(self, widget, context, sel_data, info, time):
|
||||
selected_ids = self.selected_handles()
|
||||
|
||||
if selected_ids:
|
||||
data = (self.drag_info().drag_type, id(self), selected_ids[0], 0)
|
||||
|
||||
sel_data.set(sel_data.target, 8 ,pickle.dumps(data))
|
||||
|
||||
def setup_filter(self):
|
||||
|
Loading…
Reference in New Issue
Block a user