From 48749270639147ced5dab54e240f863f3f22d0ed Mon Sep 17 00:00:00 2001 From: luddens Date: Fri, 24 Jan 2020 15:14:55 +0100 Subject: [PATCH] select the tab on the left if the closed tab is the furthest to the right --- src/tabbar.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/tabbar.cpp b/src/tabbar.cpp index 17b98df..b26a3ce 100644 --- a/src/tabbar.cpp +++ b/src/tabbar.cpp @@ -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); }