X-Git-Url: https://cloud.milkyroute.net/gitweb/dolphin.git/blobdiff_plain/59ac1d10ae41208c024048111d946a0d149c7716..b1c9b5126d:/src/folderexpander.cpp diff --git a/src/folderexpander.cpp b/src/folderexpander.cpp index 50f2bcf91..7fe775944 100644 --- a/src/folderexpander.cpp +++ b/src/folderexpander.cpp @@ -20,7 +20,7 @@ #include "folderexpander.h" #include "dolphinview.h" -#include "dolphinsettings.h" +#include "settings/dolphinsettings.h" #include "dolphin_generalsettings.h" #include @@ -112,7 +112,9 @@ void FolderExpander::autoExpandTimeout() Q_ASSERT(m_dirModel != 0); KFileItem itemToExpand = m_dirModel->itemForIndex(indexToExpand); - if (itemToExpand.isNull()) { + if (itemToExpand.isNull() || itemToExpand == m_dirModel->itemForIndex(QModelIndex())) { + // The second clause occurs when we are expanding the folder represented + // by the view, which is a case we should ignore (#182618). return; } @@ -123,7 +125,7 @@ void FolderExpander::autoExpandTimeout() treeView->setExpanded(proxyIndexToExpand, !treeView->isExpanded(proxyIndexToExpand)); } else { - emit enterDir(proxyIndexToExpand, m_view); + emit enterDir(proxyIndexToExpand); } } }