]> cloud.milkyroute.net Git - dolphin.git/commitdiff
Only reset the current URL, if the element is shown in the current view.
authorPeter Penz <peter.penz19@gmail.com>
Thu, 4 Jun 2009 06:05:45 +0000 (06:05 +0000)
committerPeter Penz <peter.penz19@gmail.com>
Thu, 4 Jun 2009 06:05:45 +0000 (06:05 +0000)
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

index 5cea1bde0fa859624c2642a897c46773651beb97..cb846fe42338d9ea1fe26830ffea4b29f890a14e 100644 (file)
@@ -67,8 +67,6 @@
 #include "viewproperties.h"
 #include "zoomlevelinfo.h"
 
-#include <kdebug.h>
-
 /**
  * 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()) {