[Digikam-devel] [Bug 142981] Deleting an image from album gui denied

Marcel Wiesweg marcel.wiesweg at gmx.de
Mon Apr 2 21:17:45 BST 2007


------- 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=142981         




------- Additional Comments From marcel.wiesweg gmx de  2007-04-02 22:17 -------
SVN commit 649549 by mwiesweg:

This, and commit 649547 which is missing a commit message, is for the trash:/ problem:
The trash:/ ioslave does not have implemented its put method, it only likes local files.

CCBUG: 142981


 M  +5 -0      imagewindow.cpp  


--- trunk/extragear/graphics/digikam/utilities/imageeditor/editor/imagewindow.cpp #649548:649549
 @ -897,6 +897,7  @
         kioURL = d->imageInfoCurrent->kurlForKIO();
     else
         kioURL = d->urlCurrent;
+    KURL fileURL = d->urlCurrent;
 
     if (!palbum)
         return;
 @ -927,6 +928,10  @
     // bring all (sidebar) to a defined state without letting them sit on the deleted file
     emit signalNoCurrentItem();
 
+    // trash does not like non-local URLs, put is not implemented
+    if (useTrash)
+        kioURL = fileURL;
+
     if (!SyncJob::del(kioURL, useTrash))
     {
         QString errMsg(SyncJob::lastErrorMsg());



More information about the Digikam-devel mailing list