diff options
Diffstat (limited to 'src/views')
| -rw-r--r-- | src/views/dolphinview.cpp | 8 | ||||
| -rw-r--r-- | src/views/dolphinview.h | 1 |
2 files changed, 9 insertions, 0 deletions
diff --git a/src/views/dolphinview.cpp b/src/views/dolphinview.cpp index 4ab16e052..6108c9d4a 100644 --- a/src/views/dolphinview.cpp +++ b/src/views/dolphinview.cpp @@ -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); diff --git a/src/views/dolphinview.h b/src/views/dolphinview.h index 1d1d316ea..48967e62b 100644 --- a/src/views/dolphinview.h +++ b/src/views/dolphinview.h @@ -559,6 +559,7 @@ protected: /** @see QWidget::mouseReleaseEvent */ virtual void mouseReleaseEvent(QMouseEvent* event); virtual bool eventFilter(QObject* watched, QEvent* event); + virtual void showEvent(QShowEvent* event); private slots: /** |
