[Konsole-devel] [Bug 98879] problems with drag 'n drop from media:/ to konsole

Kurt V.Hindenburg kurt.hindenburg at kdemail.net
Wed May 25 19:16:03 UTC 2005


------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
         
http://bugs.kde.org/show_bug.cgi?id=98879         
kurt.hindenburg kdemail net changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
         Resolution|                            |FIXED



------- Additional Comments From kurt.hindenburg kdemail net  2005-05-25 21:16 -------
SVN commit 418162 by hindenburg:

Use mostLocalURL on dropped URLs, helpful for media:/.

BUG: 98879


 M  +2 -1      TEWidget.cpp  


--- trunk/KDE/kdebase/konsole/konsole/TEWidget.cpp #418161:418162
 @ -73,6 +73,7  @
 #include <kglobalsettings.h>
 #include <kshortcut.h>
 #include <kurldrag.h>
+#include <kio/netaccess.h>
 #include <qlabel.h>
 #include <qtimer.h>
 
 @ -2148,7 +2149,7  @
           dropText += " ";
 	  m_drop->setItemEnabled(cd,false);
         }
-        KURL url = *it;
+        KURL url = KIO::NetAccess::mostLocalURL( *it, 0 );
         QString tmp;
         if (url.isLocalFile()) {
           tmp = url.path(); // local URL : remove protocol. This helps "ln" & "cd" and doesn't harm the others



More information about the konsole-devel mailing list