┌   ┐
54
└   ┘

summaryrefslogtreecommitdiff
path: root/src/dolphinmainwindow.cpp
diff options
context:
space:
mode:
authorPeter Penz <[email protected]>2006-12-20 20:50:32 +0000
committerPeter Penz <[email protected]>2006-12-20 20:50:32 +0000
commitb0b162135dce2c6f5a7687a2928afb24a5b613ec (patch)
treefd91ddc0c566918fbfe5b15249ff489a2b234a58 /src/dolphinmainwindow.cpp
parent642110309ace0ec0da270615464d7d04944d5dcf (diff)
- Performance optimization in DolphinView::loadDirectory() (don't store the view properties for each property individually)
- Get rid of methods which are not used anymore due to moving to KDirModel. - Respect GeneralSettings::globalViewProps() setting when storing view properties. svn path=/trunk/playground/utils/dolphin/; revision=615255
Diffstat (limited to 'src/dolphinmainwindow.cpp')
-rw-r--r--src/dolphinmainwindow.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/dolphinmainwindow.cpp b/src/dolphinmainwindow.cpp
index c1b99d9a8..f3e2e293c 100644
--- a/src/dolphinmainwindow.cpp
+++ b/src/dolphinmainwindow.cpp
@@ -837,6 +837,12 @@ void DolphinMainWindow::stopLoading()
void DolphinMainWindow::togglePreview()
{
+ clearStatusBar();
+
+ const KToggleAction* showPreviewAction =
+ static_cast<KToggleAction*>(actionCollection()->action("show_preview"));
+ const bool show = showPreviewAction->isChecked();
+ m_activeView->setShowPreview(show);
}
void DolphinMainWindow::toggleShowHiddenFiles()