[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    extragear/graphics/digikam/digikam
From:       Renchi Raju <renchi () pooh ! tam ! uiuc ! edu>
Date:       2005-08-21 1:39:27
Message-ID: 1124588367.489003.10033.nullmailer () svn ! kde ! org
[Download RAW message or body]

SVN commit 451544 by pahlibar:

fix crash in tagfolderview, when dragged items
where dropped in empty space


 M  +4 -7      tagfolderview.cpp  


--- trunk/extragear/graphics/digikam/digikam/tagfolderview.cpp #451543:451544
@@ -539,14 +539,11 @@
         return true;
     }
 
-    if(itemDrop && !itemDrop->parent())
+    if (ItemDrag::canDecode(e) && itemDrop && itemDrop->parent())
     {
-        // Allow only tags dragging at the root
-        return false;
-    }
-
-    if(ItemDrag::canDecode(e))
-    {
+        // Only other possibility is image items being dropped
+        // And allow this only if there is a Tag to be dropped
+        // on and also the Tag is not root.
         return true;
     }
 
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic