diff --git a/src/plugins/coreplugin/fancytabwidget.cpp b/src/plugins/coreplugin/fancytabwidget.cpp index 39b0eaccb7c..05fb7e3e13f 100644 --- a/src/plugins/coreplugin/fancytabwidget.cpp +++ b/src/plugins/coreplugin/fancytabwidget.cpp @@ -196,10 +196,7 @@ void FancyTabBar::mousePressEvent(QMouseEvent *event) emit currentAboutToChange(index); m_currentIndex = index; update(); - // update tab bar before showing widget - QMetaObject::invokeMethod(this, [this] { - emit currentChanged(m_currentIndex); - }, Qt::QueuedConnection); + emit currentChanged(m_currentIndex); } } }