From b0b162135dce2c6f5a7687a2928afb24a5b613ec Mon Sep 17 00:00:00 2001 From: Peter Penz Date: Wed, 20 Dec 2006 20:50:32 +0000 Subject: - 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 --- src/dolphinmainwindow.cpp | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/dolphinmainwindow.cpp') 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(actionCollection()->action("show_preview")); + const bool show = showPreviewAction->isChecked(); + m_activeView->setShowPreview(show); } void DolphinMainWindow::toggleShowHiddenFiles() -- cgit v1.3