[Bug 168691] Dolphin crash when trying to undo a move to trash operation

Rafael Fernández López ereslibre at kde.org
Sat Aug 9 09:47:47 CEST 2008


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




------- Additional Comments From ereslibre kde org  2008-08-09 09:47 -------
Created an attachment (id=26748)
 --> (http://bugs.kde.org/attachment.cgi?id=26748&action=view)
Fix the crash

The main problem remains at this point of how the selected urls are managed.
The operation is done for all of them, without restrictions.

An example of a wrong way would be, for instance:

In a tree of the way:

-- test (*) (folder)
 | -- a.txt
 | -- b.txt (*)

where * means the file/folder is selected. Trashing this selection could
trigger a failure if the order of the url list is "test, b.txt". Since test
will be trashed (and implicitly all subitems will also), so when b.txt will
tried to be trashed, it will fail because the system cannot find the file.

This patch what makes is to discard from the list all items that are childs of
another already selected item (that implicitly makes it selected too).


More information about the Kdelibs-bugs mailing list