(*** This bug was imported into bugs.kde.org ***) Package: kdesktop Version: KDE 3.0.2 Severity: normal Installed from: Gentoo Packages Compiler: gcc 2.95.3 OS: Linux OS/Compiler notes: Not Specified Well the short discription says it all really. Try draging an image from a webpage to the desktop and release it there. Whether you choose to use it as a wallpaper or not doesn't matter. The dotted rectangle around the mime-type icon remains visible. (Submitted via bugs.kde.org)
Subject: kdebase/kdesktop CVS commit by waba: CCMAIL: 45796-done@bugs.kde.org Fix dropping of images on desktop. M +21 -8 kdiconview.cc 1.71 --- kdebase/kdesktop/kdiconview.cc #1.70:1.71 @@ -985,16 +985,29 @@ void KDIconView::contentsDropEvent( QDro bool isColorDrag = KColorDrag::canDecode(e); bool isImageDrag = QImageDrag::canDecode(e); + bool isUrlDrag = QUriDrag::canDecode(e); bool isImmutable = KGlobal::config()->isImmutable(); - if ( isColorDrag ) { - if ( isImmutable ) // just ignore event in kiosk-mode + if ( (isColorDrag || isImageDrag) && !isUrlDrag ) { + // Hack to clear the drag shape + bool bMovable = itemsMovable(); + bool bSignals = signalsBlocked(); + setItemsMovable(false); + blockSignals(true); + KIconView::contentsDropEvent( e ); + blockSignals(bSignals); + setItemsMovable(bMovable); + // End hack + + if ( !isImmutable ) // just ignore event in kiosk-mode + { + if ( isColorDrag) emit colorDropEvent( e ); - } - else if ( isImageDrag ) { - if ( isImmutable ) // just ignore event in kiosk-mode + else if (isImageDrag) emit imageDropEvent( e ); - } else + } + } else { KonqIconViewWidget::contentsDropEvent( e ); + } }
Bug closed. Kdesktop is no more mantained.