From 7857c16713fe331ea8d7280e1b6accc2a2447563 Mon Sep 17 00:00:00 2001 From: Waldo Bastian Date: Sat, 26 Apr 2003 15:43:20 +0000 Subject: [PATCH] KIOSK: Disable "Configure Window Behavior" menu option when kwinrc is immutable. svn path=/trunk/kdebase/kwin/; revision=222215 --- workspace.cpp | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/workspace.cpp b/workspace.cpp index d81a335318..d758c638de 100644 --- a/workspace.cpp +++ b/workspace.cpp @@ -1724,9 +1724,11 @@ QPopupMenu* Workspace::clientPopup() popup->insertItem( SmallIconSet( "attach" ), i18n("Always &on Top"), Options::StaysOnTopOp ); popup->insertItem( SmallIconSet( "filesave" ), i18n("Sto&re Window Settings"), Options::ToggleStoreSettingsOp ); - popup->insertSeparator(); - - popup->insertItem(SmallIconSet( "configure" ), i18n("Configur&e Window Behavior..."), this, SLOT( configureWM() )); + if (!KGlobal::config()->isImmutable()) + { + popup->insertSeparator(); + popup->insertItem(SmallIconSet( "configure" ), i18n("Configur&e Window Behavior..."), this, SLOT( configureWM() )); + } popup->insertSeparator();