mirror of
https://github.com/kiwix/kiwix-desktop.git
synced 2025-09-24 04:32:15 -04:00
select the tab on the left if the closed tab is the furthest to the right
This commit is contained in:
parent
0dcbe42346
commit
4874927063
@ -257,7 +257,7 @@ void TabBar::closeTab(int index)
|
|||||||
void TabBar::setSelectionBehaviorOnRemove(int index)
|
void TabBar::setSelectionBehaviorOnRemove(int index)
|
||||||
{
|
{
|
||||||
if (index == count() - 2) {
|
if (index == count() - 2) {
|
||||||
setCurrentIndex(0);
|
setCurrentIndex(index - 1);
|
||||||
} else {
|
} else {
|
||||||
setCurrentIndex(index + 1);
|
setCurrentIndex(index + 1);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user