From 76f03823b11f5ce0992a748dfcb1af5ef7ee50d1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20Gr=C3=A4=C3=9Flin?= Date: Thu, 10 Nov 2011 21:48:58 +0100 Subject: [PATCH] Use config button of effect combo for layouts When layout based switcher is selected the configure button next to the combo box opens the layout configuration. --- kcmkwin/kwintabbox/main.cpp | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/kcmkwin/kwintabbox/main.cpp b/kcmkwin/kwintabbox/main.cpp index 593a4ae666..f3656083c0 100644 --- a/kcmkwin/kwintabbox/main.cpp +++ b/kcmkwin/kwintabbox/main.cpp @@ -435,7 +435,6 @@ void KWinTabBoxConfig::effectSelectionChanged(KWinTabBoxConfigForm* ui, int inde if (index > 0) enabled = true; ui->effectInfoButton->setEnabled(enabled); - ui->effectConfigButton->setEnabled(enabled); } void KWinTabBoxConfig::slotAboutEffectClicked() @@ -500,11 +499,19 @@ void KWinTabBoxConfig::aboutEffectClicked(KWinTabBoxConfigForm* ui) void KWinTabBoxConfig::slotConfigureEffectClicked() { + if (m_primaryTabBoxUi->effectCombo->currentIndex() == 0) { + slotConfigureLayoutClicked(); + return; + } configureEffectClicked(m_primaryTabBoxUi); } void KWinTabBoxConfig::slotConfigureEffectClickedAlternative() { + if (m_alternativeTabBoxUi->effectCombo->currentIndex() == 0) { + slotConfigureLayoutClickedAlternative(); + return; + } configureEffectClicked(m_alternativeTabBoxUi); }