summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMontel Laurent <montel@kde.org>2016-11-02 06:14:54 (GMT)
committerMontel Laurent <montel@kde.org>2016-11-02 06:14:54 (GMT)
commit631fa74628e42baae516643aff4903b99181c185 (patch)
tree48cff7012aee7148fbe781b669f1642a83cc28ab
parent882e57b8d0f16e3cbef061501a6be1c1e8649d5c (diff)
Emit signal when renamed was a success
-rw-r--r--src/ksieveui/widgets/managesievewidget.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/ksieveui/widgets/managesievewidget.cpp b/src/ksieveui/widgets/managesievewidget.cpp
index 8242350..51a6fe6 100644
--- a/src/ksieveui/widgets/managesievewidget.cpp
+++ b/src/ksieveui/widgets/managesievewidget.cpp
@@ -404,11 +404,12 @@ void ManageSieveWidget::slotRenameScript()
void ManageSieveWidget::slotRenameFinished(const QUrl &oldUrl, const QUrl &newUrl, const QString &errorStr, bool success)
{
+ qCDebug(LIBKSIEVE_LOG) << " void ManageSieveWidget::slotRenameResult(KManageSieve::SieveJob *job, bool success)" << success;
if (!success) {
KMessageBox::error(this, errorStr, i18n("Rename Script"));
+ } else {
+ Q_EMIT scriptRenamed(oldUrl, newUrl);
}
- qCDebug(LIBKSIEVE_LOG) << " void ManageSieveWidget::slotRenameResult(KManageSieve::SieveJob *job, bool success)" << success;
- Q_EMIT scriptRenamed(oldUrl, newUrl);
slotRefresh();
}