Properly implemented tab removal in new DockAreaTabBar class

This commit is contained in:
Uwe Kindler
2018-10-12 10:41:19 +02:00
parent 75288af88c
commit ceebda7431
2 changed files with 89 additions and 34 deletions

View File

@@ -775,7 +775,7 @@ void CDockAreaWidget::reorderDockWidget(int fromIndex, int toIndex)
auto Widget = d->ContentsLayout->widget(fromIndex);
d->ContentsLayout->removeWidget(Widget);
d->ContentsLayout->insertWidget(toIndex, Widget);
setCurrentIndex(d->TabBar->currentIndex());
setCurrentIndex(toIndex);
}