diff --git a/src/lib/tools/combotabbar.cpp b/src/lib/tools/combotabbar.cpp index a19865c52..53d0048ef 100644 --- a/src/lib/tools/combotabbar.cpp +++ b/src/lib/tools/combotabbar.cpp @@ -136,12 +136,11 @@ void ComboTabBar::removeTab(int index) localTabBar(index)->removeTab(toLocalIndex(index)); updatePinnedTabBarVisibility(); - tabRemoved(index); setMinimumWidths(); - // Enable updates with a small delay to prevent flickering - QTimer::singleShot(50, this, SLOT(enableUpdates())); + setUpdatesEnabled(true); + updateTabBars(); } } @@ -302,12 +301,6 @@ void ComboTabBar::closeTabFromButton() } } -void ComboTabBar::enableUpdates() -{ - setUpdatesEnabled(true); - updateTabBars(); -} - void ComboTabBar::updateTabBars() { m_mainTabBar->update(); diff --git a/src/lib/tools/combotabbar.h b/src/lib/tools/combotabbar.h index cb7a18e56..74bc9f714 100644 --- a/src/lib/tools/combotabbar.h +++ b/src/lib/tools/combotabbar.h @@ -142,7 +142,6 @@ private slots: void slotTabCloseRequested(int index); void slotTabMoved(int from, int to); void closeTabFromButton(); - void enableUpdates(); void updateTabBars(); protected: diff --git a/src/lib/webview/siteinfowidget.cpp b/src/lib/webview/siteinfowidget.cpp index eeffae371..52e67fed0 100644 --- a/src/lib/webview/siteinfowidget.cpp +++ b/src/lib/webview/siteinfowidget.cpp @@ -82,7 +82,8 @@ SiteInfoWidget::SiteInfoWidget(BrowserWindow* window, QWidget* parent) ui->historyLabel->setText(tr("This is your %1 visit of this site.").arg(text)); } } - connect(ui->pushButton, SIGNAL(clicked()), m_window, SLOT(showPageInfo())); + + connect(ui->pushButton, SIGNAL(clicked()), m_window->action(QSL("Tools/SiteInfo")), SLOT(trigger())); } SiteInfoWidget::~SiteInfoWidget()