diff --git a/kcmkwin/kwincompositing/model.cpp b/kcmkwin/kwincompositing/model.cpp index 2a69a5bc13..76dccf29c7 100644 --- a/kcmkwin/kwincompositing/model.cpp +++ b/kcmkwin/kwincompositing/model.cpp @@ -256,12 +256,6 @@ void EffectModel::syncEffectsToKWin() m_effectsChanged = m_effectsList; } -void EffectModel::reload() -{ - m_effectsList.clear(); - loadEffects(); -} - void EffectModel::effectStatus(const QModelIndex &rowIndex, bool effectState) { setData(rowIndex, effectState, EffectModel::EffectStatusRole); @@ -381,10 +375,6 @@ QString EffectFilterModel::findImage(const QString &imagePath, int size) return m_effectModel->findImage(imagePath, size); } -void EffectFilterModel::reload() { - m_effectModel->reload(); -} - void EffectFilterModel::syncConfig() { m_effectModel->syncConfig(); diff --git a/kcmkwin/kwincompositing/model.h b/kcmkwin/kwincompositing/model.h index f2177ddf7f..f8e9e271c2 100644 --- a/kcmkwin/kwincompositing/model.h +++ b/kcmkwin/kwincompositing/model.h @@ -78,7 +78,6 @@ public: void effectStatus(const QModelIndex &rowIndex, bool effectState); QString findImage(const QString &imagePath, int size = 128); void syncEffectsToKWin(); - void reload(); void syncConfig(); void enableWidnowManagement(bool enabled); @@ -115,7 +114,6 @@ public: Q_INVOKABLE void effectStatus(int rowIndex, bool effectState); Q_INVOKABLE QString findImage(const QString &imagePath, int size = 128); - Q_INVOKABLE void reload(); Q_INVOKABLE void syncConfig(); Q_INVOKABLE void enableWidnowManagement(bool enabled); diff --git a/kcmkwin/kwincompositing/qml/EffectView.qml b/kcmkwin/kwincompositing/qml/EffectView.qml index f85ce7dc0c..bd4873f7b0 100644 --- a/kcmkwin/kwincompositing/qml/EffectView.qml +++ b/kcmkwin/kwincompositing/qml/EffectView.qml @@ -144,7 +144,6 @@ Item { onClicked: { searchModel.syncConfig(); - searchModel.reload(); apply.enabled = false; compositing.syncConfig(openGLType.currentIndex, graphicsSystem.currentIndex); }