From f768cbd235c069c506ecc7ad01685ce115d0c1d2 Mon Sep 17 00:00:00 2001 From: Peter Penz Date: Sun, 11 Mar 2007 17:51:37 +0000 Subject: disable the 'Additional information' menu for other views then the 'Icons View' svn path=/trunk/KDE/kdebase/apps/; revision=641532 --- src/dolphinmainwindow.cpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/dolphinmainwindow.cpp') diff --git a/src/dolphinmainwindow.cpp b/src/dolphinmainwindow.cpp index 508f010ce..d6a326345 100644 --- a/src/dolphinmainwindow.cpp +++ b/src/dolphinmainwindow.cpp @@ -325,6 +325,10 @@ void DolphinMainWindow::slotAdditionalInfoChanged(KFileItemDelegate::AdditionalI if (action != 0) { KToggleAction* toggleAction = static_cast(action); toggleAction->setChecked(true); + + QActionGroup* group = toggleAction->actionGroup(); + Q_ASSERT(group != 0); + group->setEnabled(m_activeView->mode() == DolphinView::IconsView); } } -- cgit v1.3