diff --git a/src/lib/tabwidget/tabbar.h b/src/lib/tabwidget/tabbar.h index 9501a0d12..b08f9e88b 100644 --- a/src/lib/tabwidget/tabbar.h +++ b/src/lib/tabwidget/tabbar.h @@ -42,7 +42,6 @@ public: void restoreTabTextColor(int index); void setTabText(int index, const QString &text); - void updatePinnedTabCloseButton(int index); void wheelEvent(QWheelEvent* event); @@ -62,6 +61,7 @@ private: void hideCloseButton(int index); void showCloseButton(int index); + void updatePinnedTabCloseButton(int index); void contextMenuEvent(QContextMenuEvent* event); void mouseDoubleClickEvent(QMouseEvent* event); diff --git a/src/lib/tabwidget/tabwidget.cpp b/src/lib/tabwidget/tabwidget.cpp index 6966c1e8c..67ad49130 100644 --- a/src/lib/tabwidget/tabwidget.cpp +++ b/src/lib/tabwidget/tabwidget.cpp @@ -769,12 +769,8 @@ bool TabWidget::restoreState(const QVector &tabs, int currentT { for (int i = 0; i < tabs.size(); ++i) { WebTab::SavedTab tab = tabs.at(i); - int index = addView(QUrl(), Qz::NT_CleanSelectedTab, false, tab.isPinned); weTab(index)->restoreTab(tab); - - if (tab.isPinned) - m_tabBar->updatePinnedTabCloseButton(index); } setCurrentIndex(currentTab);