mirror of
https://github.com/tnodir/fort
synced 2024-11-15 14:35:10 +00:00
UI: TrayIcon: Don't capture local var by ref
This commit is contained in:
parent
82d1c9170a
commit
00604bae82
@ -722,7 +722,7 @@ void TrayIcon::onTrayActivatedByTrigger()
|
|||||||
if (clickAction(DoubleClick)) {
|
if (clickAction(DoubleClick)) {
|
||||||
m_trayTriggered = true;
|
m_trayTriggered = true;
|
||||||
QTimer::singleShot(QApplication::doubleClickInterval(), this,
|
QTimer::singleShot(QApplication::doubleClickInterval(), this,
|
||||||
[&] { onTrayActivatedByClick(clickType, /*checkTriggered=*/true); });
|
[=] { onTrayActivatedByClick(clickType, /*checkTriggered=*/true); });
|
||||||
} else {
|
} else {
|
||||||
onTrayActivatedByClick(clickType);
|
onTrayActivatedByClick(clickType);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user