Select the next tab when a playlist tab is closed. Fixes issue 3347.

This commit is contained in:
Mateusz Kowalczyk 2012-12-24 19:35:31 +11:00 committed by David Sansome
parent ab0faf7165
commit 5b88c5f4a4
1 changed files with 5 additions and 0 deletions

View File

@ -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) {