mirror of
https://github.com/clementine-player/Clementine
synced 2024-12-17 12:02:48 +01:00
Fix connects for Repeat and Shuffle. They were never reached.
This commit is contained in:
parent
8a97e317a6
commit
f779e14df7
@ -48,6 +48,8 @@ void RegisterMetaTypes() {
|
||||
qRegisterMetaType<PodcastList>("PodcastList");
|
||||
qRegisterMetaType<QList<CoverSearchResult> >("QList<CoverSearchResult>");
|
||||
qRegisterMetaType<QList<PlaylistItemPtr> >("QList<PlaylistItemPtr>");
|
||||
qRegisterMetaType<PlaylistSequence::RepeatMode>("PlaylistSequence::RepeatMode");
|
||||
qRegisterMetaType<PlaylistSequence::ShuffleMode>("PlaylistSequence::ShuffleMode");
|
||||
qRegisterMetaType<QList<PodcastEpisode> >("QList<PodcastEpisode>");
|
||||
qRegisterMetaType<QList<Podcast> >("QList<Podcast>");
|
||||
qRegisterMetaType<QList<QNetworkCookie> >("QList<QNetworkCookie>");
|
||||
|
@ -45,13 +45,6 @@ IncomingDataParser::IncomingDataParser(Application* app)
|
||||
connect(this, SIGNAL(SeekTo(int)),
|
||||
app_->player(), SLOT(SeekTo(int)));
|
||||
|
||||
// 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()),
|
||||
|
@ -36,8 +36,6 @@ signals:
|
||||
void SetShuffleMode(PlaylistSequence::ShuffleMode mode);
|
||||
void SeekTo(int seconds);
|
||||
|
||||
private slots:
|
||||
void PlaylistManagerInitialized();
|
||||
|
||||
private:
|
||||
Application* app_;
|
||||
|
Loading…
Reference in New Issue
Block a user