diff --git a/src/SpectacleCore.cpp b/src/SpectacleCore.cpp --- a/src/SpectacleCore.cpp +++ b/src/SpectacleCore.cpp @@ -338,20 +338,10 @@ if (!mCopyToClipboard) { lNotify->setUrls({theSavedAt}); lNotify->setDefaultAction(i18nc("Open the screenshot we just saved", "Open")); - connect(lNotify, QOverload::of(&KNotification::activated), this, [this, theSavedAt](uint index) { - if (index == 0) { - new KRun(theSavedAt, nullptr); - QTimer::singleShot(250, this, [this] { - if (mStartMode != StartMode::Gui) { - emit allDone(); - } - }); - } - }); } connect(lNotify, &QObject::destroyed, this, [this] { - if (mStartMode != StartMode::Gui) { + if (mStartMode != StartMode::Gui || SpectacleConfig::instance()->quitAfterSaveOrCopyChecked()) { emit allDone(); } });