]> cloud.milkyroute.net Git - dolphin.git/commit
Fixed selection of directories with a trailing slash used with --select
authorChirag Anand <anand.chirag@gmail.com>
Sat, 24 Sep 2011 19:36:33 +0000 (01:06 +0530)
committerChirag Anand <anand.chirag@gmail.com>
Sat, 24 Sep 2011 19:36:33 +0000 (01:06 +0530)
commit172ee368c91db403ca319a87e7b82e9c0da873ff
treed3fb4e36d2bb57c315a057f28374596cad5b8d3a
parent17624f0e05e73baed9f15a3ddaee32f9ca93580f
Fixed selection of directories with a trailing slash used with --select
parameter.

As QHash would not match a KUrl key with it's value if the key had a
trailing slash, so it would return -1, hence the file won't get
selected.
Changed the UpdateViewState slot to remove the trailing slash before
calling the index function for the selected URL. Also modified
DolphinView to use KUrl list instead of KFileItemList to maintain
simplicity.
src/views/dolphinview.cpp
src/views/dolphinview.h