Commit 4300a1b6 authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

Add debug

parent c8e4370d
Pipeline #67994 passed with stage
in 53 minutes and 17 seconds
......@@ -6,6 +6,11 @@ target_sources(kmailconfirmbeforedeleting PRIVATE
confirmbeforedeletingmanager.cpp
confirmbeforedeletingrule.cpp
)
ecm_qt_declare_logging_category(kmailconfirmbeforedeleting 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
)
......@@ -36,11 +41,6 @@ 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)
......
......@@ -5,6 +5,7 @@
*/
#include "confirmbeforedeletingrule.h"
#include "confirmbeforedeletingplugin_debug.h"
ConfirmBeforeDeletingRule::ConfirmBeforeDeletingRule()
{
......@@ -46,7 +47,7 @@ bool ConfirmBeforeDeletingRule::deletingNeedToConfirm() const
case Cc:
break;
case Unknown:
// Add qCWarning() << "Invalid rules!";
qCWarning(KMAIL_CONFIRMBEFOREDELETING_PLUGIN_LOG) << "Invalid rules!";
break;
}
return false;
......
Markdown is supported
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