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:
parent
252c55dd2b
commit
7bd48d6674
@ -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);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user