From 22cb0b022668a93d5d93812adee23492165c4883 Mon Sep 17 00:00:00 2001 From: Michael Jansen Date: Wed, 9 Sep 2009 23:44:02 +0000 Subject: [PATCH] Never ever discrespect the users current setting. NEVER svn path=/trunk/KDE/kdebase/workspace/; revision=1021764 --- kcmkwin/kwindesktop/main.cpp | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/kcmkwin/kwindesktop/main.cpp b/kcmkwin/kwindesktop/main.cpp index c3e0b90f68..60a5871386 100644 --- a/kcmkwin/kwindesktop/main.cpp +++ b/kcmkwin/kwindesktop/main.cpp @@ -232,7 +232,14 @@ void KWinDesktopConfig::load() int n = info.numberOfDesktops(); m_ui->numberSpinBox->setValue(n); - slotChangeShortcuts(n); + for( int i=1; i(m_actionCollection->addAction(QString("Switch to Desktop %1").arg(n))); + a = qobject_cast(m_switchDesktopCollection->addAction( "Switch One Desktop Down" )); + a->setProperty("isConfigurationAction", true); + a->setText( i18n("Switch to Desktop %1", n) ); + a->setGlobalShortcut( KShortcut(), KAction::ActiveShortcut ); + } for( int i = 1; i <= maxDesktops; i++ ) {