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();
viewAsTreeView->setExpanded(proxyIndexToExpand, !viewAsTreeView->isExpanded(proxyIndexToExpand));
}
else {
- // Enter this directory.
- emit enterDir(proxyIndexToExpand);
+ emit enterDir(proxyIndexToExpand, m_view);
}
}
}