Fixed switching to a tab with a document open using Drag'n'Drop

This commit is contained in:
SimplestStudio
2022-09-14 19:13:54 +03:00
parent b7f95d5b84
commit c31b09f54c

View File

@ -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 */