Whenever a Tab is removed from a TabView (imagine a browser tab type of implementation), the current index is always removed by one.
This isn't the right behaviour, when compared against any native tab functionalities. The current index should only be reduced when the current index is already at the last index.
Looking at the source code for TabView.qml, this is the code I found (which seems incorrect):
/*! Removes and destroys a tab at the given \a index. */