UI: TrayIcon::processMouseClick: Fix SonarCloud warning

"Argument with garbage value"
This commit is contained in:
Nodir Temirkhodjaev 2024-10-09 17:12:16 +05:00
parent 4e9ebc85bc
commit 41a5cbbe88

View File

@ -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) {