From 9ca11175a4c9e93607131c45b8e5470e1e5014b7 Mon Sep 17 00:00:00 2001 From: Chirag Anand Date: Thu, 22 Sep 2011 18:08:49 +0530 Subject: Fixed bug for selecting files with --select parameter. Files selected via --select parameter did not get current item focus. And if files were deleted while being current item, updating the view would select the next item instead of the first item in the list. BUG: 257805 CCMAIL: peter.penz19@gmail.com CCMAIL: frank78ac@googlemail.com --- src/views/dolphinview.h | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'src/views/dolphinview.h') diff --git a/src/views/dolphinview.h b/src/views/dolphinview.h index cc2e25b49..74cec7dcc 100644 --- a/src/views/dolphinview.h +++ b/src/views/dolphinview.h @@ -186,6 +186,12 @@ public: */ void markUrlsAsSelected(const QList& urls); + /** + * Marks the item indicated by \p url as the current item after the + * directory DolphinView::url() has been loaded. + */ + void markUrlAsCurrent(const KUrl& url); + /** * All items that match to the pattern \a pattern will get selected * if \a enabled is true and deselected if \a enabled is false. @@ -757,7 +763,7 @@ private: QTimer* m_selectionChangedTimer; - int m_currentItemIndex; + 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 -- cgit v1.3