select the tab on the left if the closed tab is the furthest to the right

This commit is contained in:
luddens 2020-01-24 15:14:55 +01:00 committed by Kelson
parent 0dcbe42346
commit 4874927063

View File

@ -257,7 +257,7 @@ void TabBar::closeTab(int index)
void TabBar::setSelectionBehaviorOnRemove(int index)
{
if (index == count() - 2) {
setCurrentIndex(0);
setCurrentIndex(index - 1);
} else {
setCurrentIndex(index + 1);
}