X-Git-Url: https://cloud.milkyroute.net/gitweb/dolphin.git/blobdiff_plain/a333c0d7446e38c3ec93f41c6761a64dbf6f6b0d..862ceee323ad3b474ce9de11eefbddd99c528fac:/src/treeviewsidebarpage.cpp diff --git a/src/treeviewsidebarpage.cpp b/src/treeviewsidebarpage.cpp index 1f537bd71..75e12bcf8 100644 --- a/src/treeviewsidebarpage.cpp +++ b/src/treeviewsidebarpage.cpp @@ -65,6 +65,11 @@ void TreeViewSidebarPage::setUrl(const KUrl& url) void TreeViewSidebarPage::showEvent(QShowEvent* event) { + if (event->spontaneous()) { + SidebarPage::showEvent(event); + return; + } + if (m_dirLister == 0) { // Postpone the creating of the dir lister to the first show event. // This assures that no performance and memory overhead is given when the TreeView is not