From 991fb32cc3a0c9620afcdd5ee2ad911babde489b Mon Sep 17 00:00:00 2001 From: Razi Alavizadeh Date: Fri, 6 Oct 2017 19:35:54 +0330 Subject: [PATCH] Fix restoring state of current tab after restoring last session. - After 04b288b3 WebTab does not restore its state on showEvent - QupZilla issue: https://github.com/QupZilla/qupzilla/issues/2467 --- src/lib/tabwidget/tabwidget.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/lib/tabwidget/tabwidget.cpp b/src/lib/tabwidget/tabwidget.cpp index 87d932116..5883fad96 100644 --- a/src/lib/tabwidget/tabwidget.cpp +++ b/src/lib/tabwidget/tabwidget.cpp @@ -831,9 +831,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(); - weTab()->show(); + weTab()->tabActivated(); return true; }