Skip to content

Commit 06e8451

Browse files
authored
Update DockAreaTabBar.cpp (#640)
This fix seems to have introduced a regression when _this is deleted before the lambda slot occurred, for example deleting the DockManager (and consequently _this) immediately after the execution of updateTabs function (we encountered this problem in linux)
1 parent 3ff6918 commit 06e8451

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/DockAreaTabBar.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ void DockAreaTabBarPrivate::updateTabs()
111111
// Sometimes the synchronous calculation of the rectangular area fails
112112
// Therefore we use QTimer::singleShot here to execute the call
113113
// within the event loop - see #520
114-
QTimer::singleShot(0, TabWidget, [&, TabWidget]
114+
QTimer::singleShot(0, _this, [&, TabWidget]
115115
{
116116
_this->ensureWidgetVisible(TabWidget);
117117
});

0 commit comments

Comments
 (0)