From 9f20772238d2463d562bf7cbe3ea536c68439103 Mon Sep 17 00:00:00 2001 From: David Rosca Date: Mon, 26 Dec 2016 14:35:25 +0100 Subject: [PATCH] TabBar: Fix scrolling to current tab after session restore --- src/lib/tabwidget/tabbar.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/lib/tabwidget/tabbar.cpp b/src/lib/tabwidget/tabbar.cpp index 4065c4f74..be4d8fae6 100644 --- a/src/lib/tabwidget/tabbar.cpp +++ b/src/lib/tabwidget/tabbar.cpp @@ -454,9 +454,7 @@ void TabBar::currentTabChanged(int index) showCloseButton(index); hideCloseButton(m_tabWidget->lastTabIndex()); - QTimer::singleShot(100, this, [=]() { - ensureVisible(index); - }); + QTimer::singleShot(100, this, [this]() { ensureVisible(); }); } m_tabWidget->currentTabChanged(index);