mirror of
https://github.com/clementine-player/Clementine
synced 2025-01-27 09:41:32 +01:00
Set starting_up_ to false in playlist container when manager is done adding playlists.
Otherwise, it was never set to false at startup if no "current_playlist" was saved in the settings, then there was no new value saved for "current_playlist". Fixes #4011.
This commit is contained in:
parent
d2ca9ac6ee
commit
7ae9e0dd9b
@ -141,6 +141,7 @@ void PlaylistContainer::SetManager(PlaylistManager* manager) {
|
||||
SLOT(SetViewModel(Playlist*)));
|
||||
connect(manager, SIGNAL(PlaylistAdded(int, QString, bool)),
|
||||
SLOT(PlaylistAdded(int, QString, bool)));
|
||||
connect(manager, SIGNAL(PlaylistManagerInitialized()), SLOT(Started()));
|
||||
connect(manager, SIGNAL(PlaylistClosed(int)), SLOT(PlaylistClosed(int)));
|
||||
connect(manager, SIGNAL(PlaylistRenamed(int, QString)),
|
||||
SLOT(PlaylistRenamed(int, QString)));
|
||||
@ -269,6 +270,10 @@ void PlaylistContainer::PlaylistAdded(int id, const QString& name,
|
||||
}
|
||||
}
|
||||
|
||||
void PlaylistContainer::Started() {
|
||||
starting_up_ = false;
|
||||
}
|
||||
|
||||
void PlaylistContainer::PlaylistClosed(int id) {
|
||||
ui_->tab_bar->RemoveTab(id);
|
||||
|
||||
|
@ -74,6 +74,8 @@ signals:
|
||||
void PlaylistClosed(int id);
|
||||
void PlaylistRenamed(int id, const QString& new_name);
|
||||
|
||||
void Started();
|
||||
|
||||
void ActivePlaying();
|
||||
void ActivePaused();
|
||||
void ActiveStopped();
|
||||
|
Loading…
x
Reference in New Issue
Block a user