Select the next tab when a playlist tab is closed. Fixes issue 3347.
This commit is contained in:
parent
ab0faf7165
commit
5b88c5f4a4
|
@ -154,6 +154,11 @@ void PlaylistTabBar::Close() {
|
|||
// Just hide the tab from the UI - don't delete it completely (it can still
|
||||
// be resurrected from the Playlists tab).
|
||||
emit Close(tabData(menu_index_).toInt());
|
||||
|
||||
// Select the nearest tab.
|
||||
if (menu_index_ > 1) {
|
||||
setCurrentIndex(menu_index_ - 1);
|
||||
}
|
||||
}
|
||||
|
||||
void PlaylistTabBar::CloseFromTabIndex(int index) {
|
||||
|
|
Loading…
Reference in New Issue