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

List:       kde-commits
Subject:    KDE/kdelibs/plasma
From:       Aaron J. Seigo <aseigo () kde ! org>
Date:       2009-03-31 18:45:32
Message-ID: 1238525132.501309.12568.nullmailer () svn ! kde ! org
[Download RAW message or body]

SVN commit 947546 by aseigo:

if the drag left our application (and so target() is null), treat it as if the drag \
was rejected. this works around braindamaged apps like firefox who accept anything \
dropped on them regardless of mimetype and then mark it as a move!


 M  +2 -1      extenderitem.cpp  


--- trunk/KDE/kdelibs/plasma/extenderitem.cpp #947545:947546
@@ -572,7 +572,8 @@
 
     corona->removeOffscreenWidget(this);
 
-    if (!action) { //we weren't moved, so reinsert the item in our current layout.
+    if (!action || !drag->target()) {
+        //we weren't moved, so reinsert the item in our current layout.
         d->extender->itemAddedEvent(this, curPos);
     }
 


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

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