Commit c1d35c0a authored by Konrad Materka's avatar Konrad Materka Committed by Nate Graham

[applets/systemtray] Do not try to show empty SNI context menu

SNI can return empty context menu (on right click).
Do not try to show it.

BUG: 428758
FIXED-IN: 5.21
parent 56cc74ec
......@@ -188,7 +188,7 @@ void SystemTray::showStatusNotifierContextMenu(KJob *job, QQuickItem *statusNoti
QMenu *menu = qobject_cast<QMenu *>(sjob->result().value<QObject *>());
if (menu) {
if (menu && !menu->isEmpty()) {
menu->adjustSize();
const auto parameters = sjob->parameters();
int x = parameters[QStringLiteral("x")].toInt();
......
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