From 0a7db79e7c26880012ca273619c79cd75ca9107c Mon Sep 17 00:00:00 2001 From: Aleix Pol Date: Sat, 10 Jun 2023 02:36:23 +0200 Subject: [PATCH] overview: Do not trigger the toggle action twice It's already connected as it's created by EffectTogglableState. BUG: 470603 --- src/plugins/overview/overvieweffect.cpp | 1 - 1 file changed, 1 deletion(-) diff --git a/src/plugins/overview/overvieweffect.cpp b/src/plugins/overview/overvieweffect.cpp index 2deda8ebad..5dabab3ce3 100644 --- a/src/plugins/overview/overvieweffect.cpp +++ b/src/plugins/overview/overvieweffect.cpp @@ -43,7 +43,6 @@ OverviewEffect::OverviewEffect() const QKeySequence defaultToggleShortcut = Qt::META | Qt::Key_W; auto toggleAction = m_state->toggleAction(); - connect(toggleAction, &QAction::triggered, m_state, &EffectTogglableState::toggle); toggleAction->setObjectName(QStringLiteral("Overview")); toggleAction->setText(i18n("Toggle Overview")); KGlobalAccel::self()->setDefaultShortcut(toggleAction, {defaultToggleShortcut});