From 41a5cbbe88ac56a7d6612d37d68a6b27f0d5e594 Mon Sep 17 00:00:00 2001 From: Nodir Temirkhodjaev Date: Wed, 9 Oct 2024 17:12:16 +0500 Subject: [PATCH] UI: TrayIcon::processMouseClick: Fix SonarCloud warning "Argument with garbage value" --- src/ui/form/tray/trayicon.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/ui/form/tray/trayicon.cpp b/src/ui/form/tray/trayicon.cpp index 4fe5e5e8..3add005f 100644 --- a/src/ui/form/tray/trayicon.cpp +++ b/src/ui/form/tray/trayicon.cpp @@ -903,11 +903,9 @@ QAction *TrayIcon::clickActionByType(TrayIcon::ActionType actionType) const void TrayIcon::processMouseClick(Qt::MouseButton button, Qt::KeyboardModifiers modifiers) { - ClickType clickType; + ClickType clickType = SingleClick; switch (button) { case Qt::LeftButton: { - clickType = SingleClick; - if (modifiers & Qt::ControlModifier) { clickType = CtrlSingleClick; } else if (modifiers & Qt::AltModifier) {