From 172ee368c91db403ca319a87e7b82e9c0da873ff Mon Sep 17 00:00:00 2001 From: Chirag Anand Date: Sun, 25 Sep 2011 01:06:33 +0530 Subject: 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.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/views/dolphinview.h') 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 m_selectedUrls; // this is used for making the View to remember selections after F5 VersionControlObserver* m_versionControlObserver; -- cgit v1.3