]> cloud.milkyroute.net Git - dolphin.git/blobdiff - src/folderexpander.cpp
assure that no expensive operations are done when the Information Panel has been...
[dolphin.git] / src / folderexpander.cpp
index 89abb91b18df641fc4456c9ffc2cf880b6097ca3..a5b6b35ee384903880e1aeab3525ce5920b500d4 100644 (file)
@@ -120,8 +120,9 @@ void FolderExpander::autoExpandTimeout()
     Q_ASSERT(m_dirModel != 0);
     KFileItem itemToExpand = m_dirModel->itemForIndex(indexToExpand );
 
-    if (itemToExpand.isNull())
+    if (itemToExpand.isNull()) {
         return;
+    }
     
     kDebug() << "Need to expand: " << itemToExpand.targetUrl() << " isDir? = " << itemToExpand.isDir();
 
@@ -132,8 +133,7 @@ void FolderExpander::autoExpandTimeout()
             viewAsTreeView->setExpanded(proxyIndexToExpand, !viewAsTreeView->isExpanded(proxyIndexToExpand));
         }
         else {
-            // Enter this directory.
-            emit enterDir(proxyIndexToExpand);
+            emit enterDir(proxyIndexToExpand, m_view);
         }
     }
 }