From c5d3ac53832c88fcdcd6a9f101ddbf6b80bf62d1 Mon Sep 17 00:00:00 2001 From: Peter Penz Date: Thu, 4 Jun 2009 06:05:45 +0000 Subject: Only reset the current URL, if the element is shown in the current view. This fixes the issue that when going back the last visited directory is not marked. BUG: 192811 svn path=/trunk/KDE/kdebase/apps/; revision=977410 --- src/dolphinview.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'src/dolphinview.cpp') diff --git a/src/dolphinview.cpp b/src/dolphinview.cpp index 5cea1bde0..cb846fe42 100644 --- a/src/dolphinview.cpp +++ b/src/dolphinview.cpp @@ -67,8 +67,6 @@ #include "viewproperties.h" #include "zoomlevelinfo.h" -#include - /** * Helper function for sorting items with qSort() in * DolphinView::renameSelectedItems(). @@ -1204,8 +1202,8 @@ void DolphinView::slotDirListerCompleted() if (clearSelection) { view->clearSelection(); } + m_currentItemUrl.clear(); } - m_currentItemUrl.clear(); } if (!m_newFileNames.isEmpty()) { -- cgit v1.3