diff --git a/src/DockAreaTabBar.cpp b/src/DockAreaTabBar.cpp index 437fe6d..e835144 100644 --- a/src/DockAreaTabBar.cpp +++ b/src/DockAreaTabBar.cpp @@ -111,7 +111,7 @@ void DockAreaTabBarPrivate::updateTabs() // Sometimes the synchronous calculation of the rectangular area fails // Therefore we use QTimer::singleShot here to execute the call // within the event loop - see #520 - QTimer::singleShot(0, TabWidget, [&, TabWidget] + QTimer::singleShot(0, _this, [&, TabWidget] { _this->ensureWidgetVisible(TabWidget); });