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

Authored by andreylegayev on Apr 5 2020, 12:52 PM.

Details

Summary

I've found that class member sysTray is not created if QT_NO_SYSTEMTRAYICON defined: see it in kleopatraapplication.cpp line 148
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.

Diff Detail

Repository
R168 Kleopatra
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.
andreylegayev created this revision.Apr 5 2020, 12:52 PM
Restricted Application added a project: KDE PIM. · View Herald TranscriptApr 5 2020, 12:52 PM
Restricted Application added a subscriber: kde-pim. · View Herald Transcript
andreylegayev requested review of this revision.Apr 5 2020, 12:52 PM
mlaurent accepted this revision.Apr 5 2020, 2:28 PM
This revision is now accepted and ready to land.Apr 5 2020, 2:28 PM

@mlaurent I don't have dev-access. Could you merge it?

Ok I will do tomorrow morning
Thanks

This revision was automatically updated to reflect the committed changes.