Merged from "remotecontrol". Fixed two broken connects
This commit is contained in:
parent
209b342bb9
commit
76c294e470
|
@ -42,6 +42,14 @@ IncomingDataParser::IncomingDataParser(Application* app)
|
|||
app_->player(), SLOT(SetVolume(int)));
|
||||
connect(this, SIGNAL(PlayAt(int,Engine::TrackChangeFlags,bool)),
|
||||
app_->player(), SLOT(PlayAt(int,Engine::TrackChangeFlags,bool)));
|
||||
|
||||
// For some connects we have to wait for the playlistmanager
|
||||
// to be initialized
|
||||
connect(app_->playlist_manager(), SIGNAL(PlaylistManagerInitialized()),
|
||||
this, SLOT(PlaylistManagerInitialized()));
|
||||
}
|
||||
|
||||
void IncomingDataParser::PlaylistManagerInitialized() {
|
||||
connect(this, SIGNAL(SetActivePlaylist(int)),
|
||||
app_->playlist_manager(), SLOT(SetActivePlaylist(int)));
|
||||
connect(this, SIGNAL(ShuffleCurrent()),
|
||||
|
|
|
@ -35,6 +35,9 @@ signals:
|
|||
void SetRepeatMode(PlaylistSequence::RepeatMode mode);
|
||||
void SetShuffleMode(PlaylistSequence::ShuffleMode mode);
|
||||
|
||||
private slots:
|
||||
void PlaylistManagerInitialized();
|
||||
|
||||
private:
|
||||
Application* app_;
|
||||
bool close_connection_;
|
||||
|
|
Loading…
Reference in New Issue