From 12661a7d6174462ddeee164abcd1660d0a866517 Mon Sep 17 00:00:00 2001 From: David Rosca Date: Thu, 22 Oct 2015 18:33:20 +0200 Subject: [PATCH] TabWidget: Ensure current tab is visible after restoring session --- src/lib/tabwidget/tabwidget.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/lib/tabwidget/tabwidget.cpp b/src/lib/tabwidget/tabwidget.cpp index 74df1814a..ebfd1d7af 100644 --- a/src/lib/tabwidget/tabwidget.cpp +++ b/src/lib/tabwidget/tabwidget.cpp @@ -848,6 +848,7 @@ bool TabWidget::restoreState(const QVector &tabs, int currentT } setCurrentIndex(currentTab); + QTimer::singleShot(0, m_tabBar, SLOT(ensureVisible(int,int))); // WebTab is restoring state on showEvent weTab()->hide();