┌   ┐
54
└   ┘

summaryrefslogtreecommitdiff
path: root/src/dolphinmainwindow.cpp
diff options
context:
space:
mode:
authorPeter Penz <[email protected]>2007-03-11 17:51:37 +0000
committerPeter Penz <[email protected]>2007-03-11 17:51:37 +0000
commitf768cbd235c069c506ecc7ad01685ce115d0c1d2 (patch)
treeb044ed7a80eec4c314dac11bc48954df32179c7a /src/dolphinmainwindow.cpp
parent25349096ae7fe344613d35e5548cac1a91b60fd1 (diff)
disable the 'Additional information' menu for other views then the 'Icons View'
svn path=/trunk/KDE/kdebase/apps/; revision=641532
Diffstat (limited to 'src/dolphinmainwindow.cpp')
-rw-r--r--src/dolphinmainwindow.cpp4
1 files changed, 4 insertions, 0 deletions
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<KToggleAction*>(action);
toggleAction->setChecked(true);
+
+ QActionGroup* group = toggleAction->actionGroup();
+ Q_ASSERT(group != 0);
+ group->setEnabled(m_activeView->mode() == DolphinView::IconsView);
}
}