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/dolphinmainwindow.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/dolphinmainwindow.cpp') diff --git a/src/dolphinmainwindow.cpp b/src/dolphinmainwindow.cpp index 3def8d88c..6ca6e59f7 100644 --- a/src/dolphinmainwindow.cpp +++ b/src/dolphinmainwindow.cpp @@ -330,8 +330,10 @@ void DolphinMainWindow::openFiles(const QList& files) const int tabCount = m_viewTab.count(); for (int i = 0; i < tabCount; ++i) { m_viewTab[i].primaryView->view()->markUrlsAsSelected(files); + m_viewTab[i].primaryView->view()->markUrlAsCurrent(files.at(0)); if (m_viewTab[i].secondaryView) { m_viewTab[i].secondaryView->view()->markUrlsAsSelected(files); + m_viewTab[i].secondaryView->view()->markUrlAsCurrent(files.at(0)); } } } -- cgit v1.3