From b02f1c6d7e0ff7eacdd4b5b11caba38ab1bda234 Mon Sep 17 00:00:00 2001 From: Hugo Pereira Da Costa Date: Wed, 27 Jan 2010 21:09:04 +0000 Subject: [PATCH] use selectionModel selectionChanged() signal to trigger decoration change, rather than activate svn path=/trunk/KDE/kdebase/workspace/; revision=1081165 --- kcmkwin/kwindecoration/kwindecoration.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kcmkwin/kwindecoration/kwindecoration.cpp b/kcmkwin/kwindecoration/kwindecoration.cpp index 74df4c1c45..dff4ef3565 100644 --- a/kcmkwin/kwindecoration/kwindecoration.cpp +++ b/kcmkwin/kwindecoration/kwindecoration.cpp @@ -87,7 +87,7 @@ KWinDecorationModule::KWinDecorationModule(QWidget* parent, const QVariantList & readConfig( style ); - connect( m_ui->decorationList, SIGNAL(activated(QModelIndex)), SLOT(slotSelectionChanged()) ); + connect( m_ui->decorationList->selectionModel(), SIGNAL(selectionChanged(const QItemSelection &, const QItemSelection &)), SLOT(slotSelectionChanged()) ); connect( m_ui->configureButtonsButton, SIGNAL(clicked(bool)), this, SLOT(slotConfigureButtons())); connect( m_ui->ghnsButton, SIGNAL(clicked(bool)), SLOT(slotGHNSClicked()) ); connect( m_ui->searchEdit, SIGNAL(textChanged(QString)), m_proxyModel, SLOT(setFilterFixedString(QString)));