Skip to content

Commit 8da0713

Browse files
UnlimitedStackMarcus Venturi
and
Marcus Venturi
authored
Ensure that TabWidget was not deleted by using it as context object (#612)
Co-authored-by: Marcus Venturi <marcus.venturi@visu-it.de>
1 parent 08da925 commit 8da0713

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/DockAreaTabBar.cpp

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -111,8 +111,9 @@ 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]{
115-
_this->ensureWidgetVisible(TabWidget);
114+
QTimer::singleShot(0, TabWidget, [&, TabWidget]
115+
{
116+
_this->ensureWidgetVisible(TabWidget);
116117
});
117118
}
118119
else

0 commit comments

Comments
 (0)