]> cloud.milkyroute.net Git - dolphin.git/blobdiff - src/views/dolphinview.cpp
Prevent unnecessary reloading of KDirLister on startup
[dolphin.git] / src / views / dolphinview.cpp
index 4ab16e0528a7eb3e4a8ae98c3cc25437c673ad61..6108c9d4a105475fe9b50c0831a8175543d12edf 100644 (file)
@@ -768,6 +768,14 @@ bool DolphinView::eventFilter(QObject* watched, QEvent* event)
     return QWidget::eventFilter(watched, event);
 }
 
+void DolphinView::showEvent(QShowEvent* event)
+{
+    QWidget::showEvent(event);
+    if (!event->spontaneous()) {
+        loadDirectory(url());
+    }
+}
+
 void DolphinView::activate()
 {
     setActive(true);