diff --git a/dataengines/notifications/notificationaction.cpp b/dataengines/notifications/notificationaction.cpp --- a/dataengines/notifications/notificationaction.cpp +++ b/dataengines/notifications/notificationaction.cpp @@ -74,14 +74,16 @@ parameters().value(QStringLiteral("actions")).toStringList(), hints); setResult(rv); + return; } else if (operationName() == QLatin1String("configureNotification")) { m_engine->configureNotification(parameters()[QStringLiteral("appRealName")].toString(), parameters()[QStringLiteral("eventId")].toString()); } else if (operationName() == QLatin1String("inhibit")) { const QString hint = parameters()[QStringLiteral("hint")].toString(); const QString value = parameters()[QStringLiteral("value")].toString(); auto t = m_engine->createInhibition(hint, value); setResult(QVariant::fromValue(t)); + return; } emitResult(); diff --git a/klipper/clipboardjob.cpp b/klipper/clipboardjob.cpp --- a/klipper/clipboardjob.cpp +++ b/klipper/clipboardjob.cpp @@ -50,20 +50,17 @@ if (operation == QLatin1String("clearHistory")) { m_klipper->slotAskClearHistory(); setResult(true); - emitResult(); return; } else if (operation == QLatin1String("configureKlipper")) { m_klipper->slotConfigure(); setResult(true); - emitResult(); return; } // other operations need the item HistoryItemConstPtr item = m_klipper->history()->find(QByteArray::fromBase64(destination().toUtf8())); if (item.isNull()) { setResult(false); - emitResult(); return; } if (operation == QLatin1String("select")) { @@ -80,7 +77,6 @@ return; } setResult(result); - emitResult(); } ); m_klipper->editData(item); @@ -127,7 +123,6 @@ setResult(watcher->result()); watcher->deleteLater(); delete code; - emitResult(); } ); auto future = QtConcurrent::run(code, &Prison::AbstractBarcode::toImage, QSizeF(pixelWidth, pixelHeight)); @@ -176,7 +171,6 @@ res.insert(s_previewWidthKey, preview.size().width()); res.insert(s_previewHeightKey, preview.size().height()); setResult(res); - emitResult(); } ); connect(job, &KIO::PreviewJob::failed, this, @@ -205,5 +199,4 @@ res.insert(s_previewWidthKey, pix.size().width()); res.insert(s_previewHeightKey, pix.size().height()); setResult(res); - emitResult(); }