TD: Fix several compiler warnings

This commit is contained in:
wmayer
2024-05-14 10:55:41 +02:00
parent 0e24e121eb
commit c7532cf496
2 changed files with 5 additions and 8 deletions

View File

@@ -78,7 +78,7 @@ void TechDrawHandler::deactivate()
// The context menu event of MDIViewPage comes after the tool is deactivated.
// So to prevent the menu from appearing when the tool is cleared by right mouse click
// we set a small timer.
QTimer::singleShot(100, [this]() { // 100 milliseconds delay
QTimer::singleShot(100, []() { // 100 milliseconds delay
auto* mdi = dynamic_cast<MDIViewPage*>(Gui::getMainWindow()->activeWindow());
if (!mdi) {
return;