summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMontel Laurent <montel@kde.org>2016-10-13 06:52:04 (GMT)
committerMontel Laurent <montel@kde.org>2016-10-13 06:52:04 (GMT)
commit2be43ecd0e5a4c2714d77708e16acd653785075c (patch)
treebbc53fdbd90707cbb077463d1272a2e629de7f5d
parenta9fee31fae2b63c21d5b3695da05be2c7c1921cd (diff)
Use qCWarning + remove debug
-rw-r--r--plugins/messageviewerplugins/externalscriptplugin/configuredialog/viewerpluginexternalconfigurewidget.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/plugins/messageviewerplugins/externalscriptplugin/configuredialog/viewerpluginexternalconfigurewidget.cpp b/plugins/messageviewerplugins/externalscriptplugin/configuredialog/viewerpluginexternalconfigurewidget.cpp
index fa01cfe..39cb51b 100644
--- a/plugins/messageviewerplugins/externalscriptplugin/configuredialog/viewerpluginexternalconfigurewidget.cpp
+++ b/plugins/messageviewerplugins/externalscriptplugin/configuredialog/viewerpluginexternalconfigurewidget.cpp
@@ -18,6 +18,7 @@
*/
#include "viewerpluginexternalconfigurewidget.h"
+#include "externalscriptplugin_debug.h"
#include "viewerpluginexternaleditdialog.h"
#include <QVBoxLayout>
#include <QStandardPaths>
@@ -161,10 +162,9 @@ void ViewerPluginExternalConfigureWidget::save()
Q_FOREACH (const QString &path, mFilesToRemove) {
QFile f(path);
if (!f.remove()) {
- qWarning() << " Impossible to delete " << path;
+ qCWarning(EXTERNALSCRIPTPLUGIN_LOG) << " Impossible to delete " << path;
}
}
- qDebug()<<" void ViewerPluginExternalConfigureWidget::save()" << mListExternal->count();
for (int i = 0; i < mListExternal->count(); ++i) {
ViewerPluginExternalScriptItem *item = static_cast<ViewerPluginExternalScriptItem *>(mListExternal->item(i));
const ViewerPluginExternalScriptInfo &scriptInfo = item->scriptInfo();
@@ -178,7 +178,6 @@ void ViewerPluginExternalConfigureWidget::save()
desktopFile.desktopGroup().writeEntry(QStringLiteral("Executable"), scriptInfo.executable());
desktopFile.desktopGroup().writeEntry(QStringLiteral("CommandLine"), scriptInfo.commandLine());
desktopFile.desktopGroup().sync();
- qDebug()<<" filenamepath"<<filenamepath;
}
}