[KDEPlatformSystemTrayIcon] Recreate deleted menu
ClosedPublic

Authored by kmaterka on Oct 21 2019, 7:31 PM.

Details

Summary

Recreate internal menu when needed.
It is possible that internal representation of system tray menu is
deleted. This can happen when QSystemTrayIcon is hidden.

BUG: 365105

Test Plan

Unit tests included

Diff Detail

Repository
R135 Integration for Qt applications in Plasma
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.
kmaterka created this revision.Oct 21 2019, 7:31 PM
Restricted Application added a project: Plasma. · View Herald TranscriptOct 21 2019, 7:31 PM
Restricted Application added a subscriber: plasma-devel. · View Herald Transcript
kmaterka requested review of this revision.Oct 21 2019, 7:31 PM
kmaterka retitled this revision from [KDEPlatformSystemTrayIcon] Recreate menu when deleted to [KDEPlatformSystemTrayIcon] Recreate deleted menu.

This is a proper solution to BUG 365105. Can someone review it? Is everything OK with this?

Any chance to get this reviewed? :)

apol accepted this revision.Nov 5 2019, 11:32 AM
This revision is now accepted and ready to land.Nov 5 2019, 11:32 AM
This revision was automatically updated to reflect the committed changes.

This causes menus (mostly submenus) to randomly show up when the SNI is updated, e.g. every time VLC changes a track I get its "speed (slower, normal, faster)" menu open:


(note the thick shadow, this is multiple menus stacked ontop of each other)

This causes menus (mostly submenus) to randomly show up when the SNI is updated, e.g. every time VLC changes a track I get its "speed (slower, normal, faster)" menu open:


(note the thick shadow, this is multiple menus stacked ontop of each other)

I will fix that right away!

This causes menus (mostly submenus) to randomly show up when the SNI is updated, e.g. every time VLC changes a track I get its "speed (slower, normal, faster)" menu open:

I will fix that right away!

Fixed in D25223