]> cloud.milkyroute.net Git - dolphin.git/blobdiff - src/treeviewsidebarpage.cpp
fixed some activation issues in combination with split views
[dolphin.git] / src / treeviewsidebarpage.cpp
index 1f537bd71928d08e5ab199ac2a2fda3cb6c51341..75e12bcf8a8ca42223e9149e9727fcf87e3ec5b2 100644 (file)
@@ -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