summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMontel Laurent <montel@kde.org>2016-10-31 20:00:19 (GMT)
committerMontel Laurent <montel@kde.org>2016-10-31 20:00:19 (GMT)
commitc523b0d5e58f87776215aacb985ac2abfc885ffd (patch)
tree3fd5df174906c4ce5b9680fa71c315a74d8131e4
parentc53debe3a4e4d19dbf48a917d8b7da8851d6b261 (diff)
Clean up code
-rw-r--r--src/ksieveui/widgets/managesievewidget.cpp8
1 files changed, 3 insertions, 5 deletions
diff --git a/src/ksieveui/widgets/managesievewidget.cpp b/src/ksieveui/widgets/managesievewidget.cpp
index 37bcbe8..9b97e54 100644
--- a/src/ksieveui/widgets/managesievewidget.cpp
+++ b/src/ksieveui/widgets/managesievewidget.cpp
@@ -390,11 +390,8 @@ void ManageSieveWidget::slotRenameScript()
u = u.adjusted(QUrl::RemoveFilename);
u.setPath(u.path() + QLatin1Char('/') + currentItem->text(0));
#ifdef USE_RENAME_SIEVE_METHOD
- qDebug()<<" u " << u;
KManageSieve::SieveJob *job = KManageSieve::SieveJob::rename(u, newName);
connect(job, &KManageSieve::SieveJob::result, this, &ManageSieveWidget::slotRenameResult);
- //TODO ? Q_EMIT scriptRenamed(u);
- slotRefresh();
#else
KSieveUi::RenameScriptJob *job = new KSieveUi::RenameScriptJob(this);
job->setOldUrl(u);
@@ -407,13 +404,14 @@ void ManageSieveWidget::slotRenameScript()
void ManageSieveWidget::slotRenameFinished(bool success)
{
- qDebug()<<" void ManageSieveWidget::slotRenameResult(KManageSieve::SieveJob *job, bool success)"<<success;
+ qCDebug(LIBKSIEVE_LOG) << " void ManageSieveWidget::slotRenameResult(KManageSieve::SieveJob *job, bool success)"<<success;
slotRefresh();
}
void ManageSieveWidget::slotRenameResult(KManageSieve::SieveJob *job, bool success)
{
- qDebug()<<" void ManageSieveWidget::slotRenameResult(KManageSieve::SieveJob *job, bool success)"<<success;
+ qCDebug(LIBKSIEVE_LOG) << " void ManageSieveWidget::slotRenameResult(KManageSieve::SieveJob *job, bool success)"<<success;
+ slotRefresh();
}
void ManageSieveWidget::slotDeleteScript()