diff --git a/src/effects/blur/blur_config.cpp b/src/effects/blur/blur_config.cpp index 180aa4fe13..c342ead828 100644 --- a/src/effects/blur/blur_config.cpp +++ b/src/effects/blur/blur_config.cpp @@ -23,8 +23,6 @@ BlurEffectConfig::BlurEffectConfig(QWidget *parent, const QVariantList &args) ui.setupUi(this); BlurConfig::instance(KWIN_CONFIG); addConfig(BlurConfig::self(), this); - - load(); } BlurEffectConfig::~BlurEffectConfig() diff --git a/src/effects/desktopgrid/desktopgrid_config.cpp b/src/effects/desktopgrid/desktopgrid_config.cpp index d292b0a42a..14042ce551 100644 --- a/src/effects/desktopgrid/desktopgrid_config.cpp +++ b/src/effects/desktopgrid/desktopgrid_config.cpp @@ -79,9 +79,6 @@ DesktopGridEffectConfig::DesktopGridEffectConfig(QWidget* parent, const QVariant connect(m_ui->desktopNameAlignmentCombo, qOverload(&QComboBox::currentIndexChanged), this, &DesktopGridEffectConfig::markAsChanged); connect(m_ui->clickBehaviorButtonGroup, qOverload(&QButtonGroup::buttonClicked), this, &DesktopGridEffectConfig::markAsChanged); connect(m_ui->shortcutEditor, &KShortcutsEditor::keyChange, this, &DesktopGridEffectConfig::markAsChanged); - - load(); - layoutSelectionChanged(); } DesktopGridEffectConfig::~DesktopGridEffectConfig() @@ -111,6 +108,7 @@ void DesktopGridEffectConfig::load() if (clickBehaviorButton) { clickBehaviorButton->setChecked(true); } + layoutSelectionChanged(); } void DesktopGridEffectConfig::layoutSelectionChanged() diff --git a/src/effects/diminactive/diminactive_config.cpp b/src/effects/diminactive/diminactive_config.cpp index 49aa66a051..cf0ebbd68f 100644 --- a/src/effects/diminactive/diminactive_config.cpp +++ b/src/effects/diminactive/diminactive_config.cpp @@ -29,7 +29,6 @@ DimInactiveEffectConfig::DimInactiveEffectConfig(QWidget *parent, const QVariant m_ui.setupUi(this); DimInactiveConfig::instance(KWIN_CONFIG); addConfig(DimInactiveConfig::self(), this); - load(); } DimInactiveEffectConfig::~DimInactiveEffectConfig() diff --git a/src/effects/glide/glide_config.cpp b/src/effects/glide/glide_config.cpp index 9a330363b8..532bbd603f 100644 --- a/src/effects/glide/glide_config.cpp +++ b/src/effects/glide/glide_config.cpp @@ -24,7 +24,6 @@ GlideEffectConfig::GlideEffectConfig(QWidget *parent, const QVariantList &args) ui.setupUi(this); GlideConfig::instance(KWIN_CONFIG); addConfig(GlideConfig::self(), this); - load(); } GlideEffectConfig::~GlideEffectConfig() diff --git a/src/effects/invert/invert_config.cpp b/src/effects/invert/invert_config.cpp index 7d55fb5865..dfb815b005 100644 --- a/src/effects/invert/invert_config.cpp +++ b/src/effects/invert/invert_config.cpp @@ -50,8 +50,6 @@ InvertEffectConfig::InvertEffectConfig(QWidget* parent, const QVariantList& args KShortcutsEditor::GlobalAction, KShortcutsEditor::LetterShortcutsDisallowed); connect(mShortcutEditor, &KShortcutsEditor::keyChange, this, &InvertEffectConfig::markAsChanged); layout->addWidget(mShortcutEditor); - - load(); } InvertEffectConfig::~InvertEffectConfig() diff --git a/src/effects/magiclamp/magiclamp_config.cpp b/src/effects/magiclamp/magiclamp_config.cpp index b36ee2dc77..030a9c0910 100644 --- a/src/effects/magiclamp/magiclamp_config.cpp +++ b/src/effects/magiclamp/magiclamp_config.cpp @@ -39,8 +39,6 @@ MagicLampEffectConfig::MagicLampEffectConfig(QWidget* parent, const QVariantList MagicLampConfig::instance(KWIN_CONFIG); addConfig(MagicLampConfig::self(), m_ui); - - load(); } void MagicLampEffectConfig::save() diff --git a/src/effects/magnifier/magnifier_config.cpp b/src/effects/magnifier/magnifier_config.cpp index 7f1ba7cea8..98f8b0d570 100644 --- a/src/effects/magnifier/magnifier_config.cpp +++ b/src/effects/magnifier/magnifier_config.cpp @@ -73,8 +73,6 @@ MagnifierEffectConfig::MagnifierEffectConfig(QWidget* parent, const QVariantList KGlobalAccel::self()->setShortcut(a, QList() << Qt::META + Qt::Key_0); m_ui->editor->addCollection(m_actionCollection); - - load(); } MagnifierEffectConfig::~MagnifierEffectConfig() diff --git a/src/effects/mouseclick/mouseclick_config.cpp b/src/effects/mouseclick/mouseclick_config.cpp index d8f5cc93b8..7896619b70 100644 --- a/src/effects/mouseclick/mouseclick_config.cpp +++ b/src/effects/mouseclick/mouseclick_config.cpp @@ -56,7 +56,6 @@ MouseClickEffectConfig::MouseClickEffectConfig(QWidget* parent, const QVariantLi MouseClickConfig::instance(KWIN_CONFIG); addConfig(MouseClickConfig::self(), m_ui); - load(); } MouseClickEffectConfig::~MouseClickEffectConfig() diff --git a/src/effects/overview/kcm/overvieweffectkcm.cpp b/src/effects/overview/kcm/overvieweffectkcm.cpp index 174ee57c74..30b9bd2c1d 100644 --- a/src/effects/overview/kcm/overvieweffectkcm.cpp +++ b/src/effects/overview/kcm/overvieweffectkcm.cpp @@ -44,8 +44,6 @@ OverviewEffectConfig::OverviewEffectConfig(QWidget *parent, const QVariantList & ui.shortcutsEditor->addCollection(actionCollection); connect(ui.shortcutsEditor, &KShortcutsEditor::keyChange, this, &OverviewEffectConfig::markAsChanged); - - load(); } OverviewEffectConfig::~OverviewEffectConfig() diff --git a/src/effects/presentwindows/presentwindows_config.cpp b/src/effects/presentwindows/presentwindows_config.cpp index 10b19234c2..1e3cc592c1 100644 --- a/src/effects/presentwindows/presentwindows_config.cpp +++ b/src/effects/presentwindows/presentwindows_config.cpp @@ -73,8 +73,6 @@ PresentWindowsEffectConfig::PresentWindowsEffectConfig(QWidget* parent, const QV PresentWindowsConfig::instance(KWIN_CONFIG); addConfig(PresentWindowsConfig::self(), m_ui); - - load(); } PresentWindowsEffectConfig::~PresentWindowsEffectConfig() diff --git a/src/effects/showfps/showfps_config.cpp b/src/effects/showfps/showfps_config.cpp index eb6b20c9be..cd1defd055 100644 --- a/src/effects/showfps/showfps_config.cpp +++ b/src/effects/showfps/showfps_config.cpp @@ -30,8 +30,6 @@ ShowFpsEffectConfig::ShowFpsEffectConfig(QWidget* parent, const QVariantList& ar ShowFpsConfig::instance(KWIN_CONFIG); addConfig(ShowFpsConfig::self(), this); - - load(); } ShowFpsEffectConfig::~ShowFpsEffectConfig() diff --git a/src/effects/showpaint/showpaint_config.cpp b/src/effects/showpaint/showpaint_config.cpp index 3789c5ae94..d80b4f1df2 100644 --- a/src/effects/showpaint/showpaint_config.cpp +++ b/src/effects/showpaint/showpaint_config.cpp @@ -44,8 +44,6 @@ ShowPaintEffectConfig::ShowPaintEffectConfig(QWidget *parent, const QVariantList connect(m_ui->shortcutsEditor, &KShortcutsEditor::keyChange, this, &ShowPaintEffectConfig::markAsChanged); - - load(); } ShowPaintEffectConfig::~ShowPaintEffectConfig() diff --git a/src/effects/slide/slide_config.cpp b/src/effects/slide/slide_config.cpp index b053176580..1a3e444604 100644 --- a/src/effects/slide/slide_config.cpp +++ b/src/effects/slide/slide_config.cpp @@ -27,7 +27,6 @@ SlideEffectConfig::SlideEffectConfig(QWidget *parent, const QVariantList &args) m_ui.setupUi(this); SlideConfig::instance(KWIN_CONFIG); addConfig(SlideConfig::self(), this); - load(); } SlideEffectConfig::~SlideEffectConfig() diff --git a/src/effects/thumbnailaside/thumbnailaside_config.cpp b/src/effects/thumbnailaside/thumbnailaside_config.cpp index 6a9845d888..886f4b8edc 100644 --- a/src/effects/thumbnailaside/thumbnailaside_config.cpp +++ b/src/effects/thumbnailaside/thumbnailaside_config.cpp @@ -62,8 +62,6 @@ ThumbnailAsideEffectConfig::ThumbnailAsideEffectConfig(QWidget* parent, const QV KGlobalAccel::self()->setShortcut(a, QList() << Qt::META + Qt::CTRL + Qt::Key_T); m_ui->editor->addCollection(m_actionCollection); - - load(); } ThumbnailAsideEffectConfig::~ThumbnailAsideEffectConfig() diff --git a/src/effects/trackmouse/trackmouse_config.cpp b/src/effects/trackmouse/trackmouse_config.cpp index 1fb4094e6b..3774589c99 100644 --- a/src/effects/trackmouse/trackmouse_config.cpp +++ b/src/effects/trackmouse/trackmouse_config.cpp @@ -61,8 +61,6 @@ TrackMouseEffectConfig::TrackMouseEffectConfig(QWidget* parent, const QVariantLi connect(m_ui->shortcut, &KKeySequenceWidget::keySequenceChanged, this, &TrackMouseEffectConfig::shortcutChanged); - - load(); } TrackMouseEffectConfig::~TrackMouseEffectConfig() diff --git a/src/effects/wobblywindows/wobblywindows_config.cpp b/src/effects/wobblywindows/wobblywindows_config.cpp index 4b44aa7e64..66cd2ca703 100644 --- a/src/effects/wobblywindows/wobblywindows_config.cpp +++ b/src/effects/wobblywindows/wobblywindows_config.cpp @@ -74,8 +74,6 @@ WobblyWindowsEffectConfig::WobblyWindowsEffectConfig(QWidget* parent, const QVar addConfig(WobblyWindowsConfig::self(), this); connect(m_ui.kcfg_WobblynessLevel, &QSlider::valueChanged, this, &WobblyWindowsEffectConfig::wobblinessChanged); - - load(); } WobblyWindowsEffectConfig::~WobblyWindowsEffectConfig() diff --git a/src/effects/zoom/zoom_config.cpp b/src/effects/zoom/zoom_config.cpp index adac870514..5e3217de44 100644 --- a/src/effects/zoom/zoom_config.cpp +++ b/src/effects/zoom/zoom_config.cpp @@ -116,8 +116,6 @@ ZoomEffectConfig::ZoomEffectConfig(QWidget* parent, const QVariantList& args) : KGlobalAccel::self()->setShortcut(a, QList() << Qt::META + Qt::Key_F6); m_ui->editor->addCollection(actionCollection); - - load(); } ZoomEffectConfig::~ZoomEffectConfig()