[ComboTabBar] When removing tabs, don't use timer for enabling updates

Also fixed Show Site Info action in SiteInfoWidget
remotes/origin/falkon
nowrep 12 years ago
parent d109159408
commit 07cf7036df
  1. 11
      src/lib/tools/combotabbar.cpp
  2. 1
      src/lib/tools/combotabbar.h
  3. 3
      src/lib/webview/siteinfowidget.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();

@ -142,7 +142,6 @@ private slots:
void slotTabCloseRequested(int index);
void slotTabMoved(int from, int to);
void closeTabFromButton();
void enableUpdates();
void updateTabBars();
protected:

@ -82,7 +82,8 @@ SiteInfoWidget::SiteInfoWidget(BrowserWindow* window, QWidget* parent)
ui->historyLabel->setText(tr("This is your <b>%1</b> 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()

Loading…
Cancel
Save