mirror of
https://github.com/tnodir/fort
synced 2024-11-14 21:55:37 +00:00
UI: TrayIcon::processMouseClick: Fix SonarCloud warning
"Argument with garbage value"
This commit is contained in:
parent
4e9ebc85bc
commit
41a5cbbe88
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user