1
mirror of https://invent.kde.org/network/falkon.git synced 2024-09-21 17:52:10 +02: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)
{
QTimer::singleShot(0, this, SLOT(setUpLayout()));
if (!event->spontaneous()) {
QTimer::singleShot(0, this, SLOT(setUpLayout()));
}
QWidget::showEvent(event);
}