UI: TrayIcon: Don't capture local var by ref

This commit is contained in:
Nodir Temirkhodjaev 2023-05-26 13:11:58 +03:00
parent 82d1c9170a
commit 00604bae82

View File

@ -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);
}