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

Patch from Andrey Legayev

Add #ifndef QT_NO_SYSTEMTRAYICON to KleopatraApplication::~Private()

Summary:
I've found that class member `sysTray` is not created if QT_NO_SYSTEMTRAYICON defined: see it in [[ https://phabricator.kde.org/source/kleopatra/browse/master/src/kleopatraapplication.>
I've added the same pre-processing macros for delete statement to prevent compilation error.

Test Plan: Try to compile with QT_NO_SYSTEMTRAYICON - it should proceed without errors.

Reviewers: mlaurent

Reviewed By: mlaurent

Subscribers: kde-pim

Tags: #kde_pim, #kde_pim_kleopatra

Differential Revision: https://phabricator.kde.org/D28591
parent c58f5da9
......@@ -108,7 +108,9 @@ public:
{
}
~Private() {
#ifndef QT_NO_SYSTEMTRAYICON
delete sysTray;
#endif
}
void init()
{
......
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