mirror of
https://github.com/clementine-player/Clementine
synced 2025-01-31 11:35:24 +01:00
Select newly created playlists
This commit is contained in:
parent
0aa579c2be
commit
a274f8cbfc
@ -102,6 +102,10 @@ void PlaylistContainer::SetViewModel(Playlist* playlist) {
|
||||
view()->SetItemDelegates(manager_->library_backend());
|
||||
playlist->IgnoreSorting(false);
|
||||
|
||||
// Ensure that tab is current
|
||||
if (ui_->tab_bar->currentIndex() != manager_->current_index())
|
||||
ui_->tab_bar->setCurrentIndex(manager_->current_index());
|
||||
|
||||
// Sort out the undo/redo actions
|
||||
delete undo_;
|
||||
delete redo_;
|
||||
|
@ -74,6 +74,7 @@ void PlaylistManager::New(const QString& name) {
|
||||
qFatal("Couldn't create playlist");
|
||||
|
||||
AddPlaylist(id, name);
|
||||
SetCurrentPlaylist(playlists_.count() - 1);
|
||||
}
|
||||
|
||||
void PlaylistManager::Load(const QString& filename) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user