[kwin] Drop reaction on SETTINGS_SHORTCUTS changed

This looks mostly like dead code. The change got only emitted by the
KCMKeyboard on save. In ancient times this seems to have caused to
re-read the global shortcuts. Code got commented out during KDE4 times
and after several code refactors all that was left of it was discarding
the user actions menu.
This commit is contained in:
Martin Gräßlin 2013-12-06 10:11:38 +01:00
parent 09958a6b1c
commit 9f6f0dd688
2 changed files with 0 additions and 10 deletions

View file

@ -323,7 +323,6 @@ void Workspace::init()
connect(&reconfigureTimer, SIGNAL(timeout()), this, SLOT(slotReconfigure()));
connect(&updateToolWindowsTimer, SIGNAL(timeout()), this, SLOT(slotUpdateToolWindows()));
connect(KGlobalSettings::self(), SIGNAL(settingsChanged(int)), this, SLOT(slotSettingsChanged(int)));
connect(KGlobalSettings::self(), SIGNAL(blockShortcuts(int)), this, SLOT(slotBlockShortcuts(int)));
// TODO: do we really need to reconfigure everything when fonts change?
@ -795,13 +794,6 @@ bool Workspace::waitForCompositingSetup()
return false;
}
void Workspace::slotSettingsChanged(int category)
{
qDebug() << "Workspace::slotSettingsChanged()";
if (category == KGlobalSettings::SETTINGS_SHORTCUTS)
m_userActionsMenu->discard();
}
/**
* Reread settings
*/

View file

@ -357,8 +357,6 @@ public Q_SLOTS:
void slotWindowToDesktopUp();
void slotWindowToDesktopDown();
void slotSettingsChanged(int category);
void reconfigure();
void slotReconfigure();