1
mirror of https://invent.kde.org/network/falkon.git synced 2024-12-20 10:46:35 +01:00

[ComboTabBar] Don't scroll to current tab on window focus change

This commit is contained in:
S. Razi Alavizadeh 2014-01-01 15:15:26 +01:00 committed by nowrep
parent 252c55dd2b
commit 7bd48d6674

View File

@ -764,7 +764,9 @@ void ComboTabBar::setMinimumWidths()
void ComboTabBar::showEvent(QShowEvent* event) void ComboTabBar::showEvent(QShowEvent* event)
{ {
QTimer::singleShot(0, this, SLOT(setUpLayout())); if (!event->spontaneous()) {
QTimer::singleShot(0, this, SLOT(setUpLayout()));
}
QWidget::showEvent(event); QWidget::showEvent(event);
} }