diff options
| author | Chirag Anand <[email protected]> | 2011-09-22 18:08:49 +0530 |
|---|---|---|
| committer | Chirag Anand <[email protected]> | 2011-09-22 18:08:49 +0530 |
| commit | 9ca11175a4c9e93607131c45b8e5470e1e5014b7 (patch) | |
| tree | 61f1635596c0e5e76881344693af4238f05215ed /src/views/dolphinview.h | |
| parent | bc96a102340252363158ded39a3cb0adaee59824 (diff) | |
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: [email protected]
CCMAIL: [email protected]
Diffstat (limited to 'src/views/dolphinview.h')
| -rw-r--r-- | src/views/dolphinview.h | 8 |
1 files changed, 7 insertions, 1 deletions
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 @@ -187,6 +187,12 @@ public: void markUrlsAsSelected(const QList<KUrl>& 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 |
