From fa8727d27172ffe5d1f5d16f243a1e9c23a03100 Mon Sep 17 00:00:00 2001 From: mkaay Date: Sat, 20 Mar 2010 00:10:28 +0100 Subject: fixed #86 --- pyLoadGui.py | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) (limited to 'pyLoadGui.py') diff --git a/pyLoadGui.py b/pyLoadGui.py index 0287faf14..045aeb1a4 100755 --- a/pyLoadGui.py +++ b/pyLoadGui.py @@ -199,18 +199,18 @@ class main(QObject): view.takeTopLevelItem(row) def dragEvent(klass, event): view = event.source() - dragOkay = False - items = view.selectedItems() - for item in items: - if hasattr(item, "_data"): - if item._data["id"] == "fixed" or item.parent()._data["id"] == "fixed": - dragOkay = True - else: - dragOkay = True - if dragOkay: - event.accept() - else: - event.ignore() + #dragOkay = False + #items = view.selectedItems() + #for item in items: + # if hasattr(item, "_data"): + # if item._data["id"] == "fixed" or item.parent()._data["id"] == "fixed": + # dragOkay = True + # else: + # dragOkay = True + #if dragOkay: + event.accept() + #else: + # event.ignore() view.dropEvent = dropEvent view.dragEnterEvent = dragEvent view.setDragEnabled(True) -- cgit v1.2.3