┌   ┐
54
└   ┘

summaryrefslogtreecommitdiff
path: root/src/views/dolphinview.h
diff options
context:
space:
mode:
authorChirag Anand <[email protected]>2011-09-25 01:06:33 +0530
committerChirag Anand <[email protected]>2011-09-25 01:06:33 +0530
commit172ee368c91db403ca319a87e7b82e9c0da873ff (patch)
treed3fb4e36d2bb57c315a057f28374596cad5b8d3a /src/views/dolphinview.h
parent17624f0e05e73baed9f15a3ddaee32f9ca93580f (diff)
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.
Diffstat (limited to 'src/views/dolphinview.h')
-rw-r--r--src/views/dolphinview.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/views/dolphinview.h b/src/views/dolphinview.h
index 74cec7dcc..da74011a7 100644
--- a/src/views/dolphinview.h
+++ b/src/views/dolphinview.h
@@ -766,7 +766,7 @@ private:
KUrl m_currentItemUrl;
QPoint m_restoredContentsPosition;
KUrl m_createdItemUrl; // URL for a new item that got created by the "Create New..." menu
- KFileItemList m_selectedItems; // this is used for making the View to remember selections after F5
+ QList<KUrl> m_selectedUrls; // this is used for making the View to remember selections after F5
VersionControlObserver* m_versionControlObserver;