Skip to content

Commit

Permalink
需要注释ensureWidgetVisible,不然会coredump
Browse files Browse the repository at this point in the history
  • Loading branch information
guanshoukui committed Jan 8, 2024
1 parent ac05c1e commit abd55a5
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/DockAreaTabBar.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -111,9 +111,9 @@ 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]{
_this->ensureWidgetVisible(TabWidget);
});
// QTimer::singleShot(0, [&, TabWidget]{
// _this->ensureWidgetVisible(TabWidget);
// });
}
else
{
Expand Down

0 comments on commit abd55a5

Please sign in to comment.