diff --git a/src/ui/form/tray/trayicon.cpp b/src/ui/form/tray/trayicon.cpp index 77c3f8a7..f6e4ae60 100644 --- a/src/ui/form/tray/trayicon.cpp +++ b/src/ui/form/tray/trayicon.cpp @@ -722,7 +722,7 @@ void TrayIcon::onTrayActivatedByTrigger() if (clickAction(DoubleClick)) { m_trayTriggered = true; QTimer::singleShot(QApplication::doubleClickInterval(), this, - [&] { onTrayActivatedByClick(clickType, /*checkTriggered=*/true); }); + [=] { onTrayActivatedByClick(clickType, /*checkTriggered=*/true); }); } else { onTrayActivatedByClick(clickType); }