From c31b09f54c07da41f538d31438b66561f5ea87fd Mon Sep 17 00:00:00 2001 From: SimplestStudio Date: Wed, 14 Sep 2022 19:13:54 +0300 Subject: [PATCH] Fixed switching to a tab with a document open using Drag'n'Drop --- win-linux/src/components/asctabwidget.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/win-linux/src/components/asctabwidget.cpp b/win-linux/src/components/asctabwidget.cpp index af0a05c5e..018edbd4f 100644 --- a/win-linux/src/components/asctabwidget.cpp +++ b/win-linux/src/components/asctabwidget.cpp @@ -702,7 +702,7 @@ int CAscTabWidget::openLocalDocument(const COpenOptions& options, bool select, b } if (select && !(tabIndex < 0)) - m_pBar->setCurrentIndex(tabIndex); + setCurrentIndex(tabIndex); /* TODO: rise message if index < 0 */