Commit aa518007 authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

Add debug

parent 24ba367c
......@@ -19,8 +19,6 @@ ecm_qt_declare_logging_category(kmailconfirmbeforedeleting HEADER confirmbefored
EXPORT KDEPIMADDONS
)
if (COMPILE_WITH_UNITY_CMAKE_SUPPORT)
set_target_properties(kmailconfirmbeforedeleting PROPERTIES UNITY_BUILD ON)
endif()
......@@ -48,6 +46,11 @@ target_sources(kmail_confirmbeforedeletingplugin PRIVATE
confirmbeforedeletingplugin.cpp
)
ecm_qt_declare_logging_category(kmail_confirmbeforedeletingplugin HEADER confirmbeforedeletingplugin_debug.h IDENTIFIER KMAIL_CONFIRMBEFOREDELETING_PLUGIN_LOG CATEGORY_NAME org.kde.pim.kmail_confirmbeforedeletingplugin
DESCRIPTION "kdepim-addons (Confirm Before Deleting email)"
OLD_CATEGORY_NAMES log_kmail_confirmbeforedeletingplugin
EXPORT KDEPIMADDONS
)
if (COMPILE_WITH_UNITY_CMAKE_SUPPORT)
set_target_properties(kmail_confirmbeforedeletingplugin PROPERTIES UNITY_BUILD ON)
......
......@@ -6,6 +6,7 @@
#include "confirmbeforedeletinginterface.h"
#include "confirmbeforedeletingmanager.h"
#include "confirmbeforedeletingmessageboxdialog.h"
#include "confirmbeforedeletingplugin_debug.h"
#include <KLocalizedString>
#include <KMessageBox>
#include <QAction>
......@@ -83,7 +84,7 @@ Akonadi::Item::List ConfirmBeforeDeletingInterface::exec(const Akonadi::Item::Li
delete dlg;
break;
} else {
qWarning() << " StandardButton is invalid " << button << " .It's a bug!";
qCWarning(KMAIL_CONFIRMBEFOREDELETING_PLUGIN_LOG) << " StandardButton is invalid " << button << " .It's a bug!";
}
} else {
lst << item;
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment