diff --git a/src/lib/tools/combotabbar.cpp b/src/lib/tools/combotabbar.cpp index c57c58869..0e2c5b7df 100644 --- a/src/lib/tools/combotabbar.cpp +++ b/src/lib/tools/combotabbar.cpp @@ -764,7 +764,9 @@ void ComboTabBar::setMinimumWidths() void ComboTabBar::showEvent(QShowEvent* event) { - QTimer::singleShot(0, this, SLOT(setUpLayout())); + if (!event->spontaneous()) { + QTimer::singleShot(0, this, SLOT(setUpLayout())); + } QWidget::showEvent(event); }