Cherry pick more make format changes src/podcasts
This commit is contained in:
parent
8b934b7ada
commit
ad4bc3b88b
@ -170,7 +170,7 @@ void GPodderSync::DeviceUpdatesFailed(mygpo::DeviceUpdatesPtr reply) {
|
||||
void GPodderSync::DeviceUpdatesFinished(mygpo::DeviceUpdatesPtr reply) {
|
||||
// Remember episode actions for each podcast, so when we add a new podcast
|
||||
// we can apply the actions immediately.
|
||||
QMap<QUrl, QList<mygpo::EpisodePtr> > episodes_by_podcast;
|
||||
QMap<QUrl, QList<mygpo::EpisodePtr>> episodes_by_podcast;
|
||||
for (mygpo::EpisodePtr episode : reply->updateList()) {
|
||||
episodes_by_podcast[episode->podcastUrl()].append(episode);
|
||||
}
|
||||
@ -235,7 +235,7 @@ void GPodderSync::NewPodcastLoaded(PodcastUrlLoaderReply* reply,
|
||||
}
|
||||
|
||||
void GPodderSync::ApplyActions(
|
||||
const QList<QSharedPointer<mygpo::Episode> >& actions,
|
||||
const QList<QSharedPointer<mygpo::Episode>>& actions,
|
||||
PodcastEpisodeList* episodes) {
|
||||
for (PodcastEpisodeList::iterator it = episodes->begin();
|
||||
it != episodes->end(); ++it) {
|
||||
|
@ -64,13 +64,13 @@ void Task::reading() {
|
||||
}
|
||||
}
|
||||
void Task::finishedPublic() {
|
||||
disconnect(repl.get(), SIGNAL(readyRead()), 0, 0);
|
||||
disconnect(repl.get(), SIGNAL(downloadProgress(qint64, qint64)), 0, 0);
|
||||
disconnect(repl.get(), SIGNAL(finished()), 0, 0);
|
||||
emit ProgressChanged(episode_, PodcastDownload::NotDownloading, 0);
|
||||
// Delete the file
|
||||
file_->remove();
|
||||
emit finished(this);
|
||||
disconnect(repl.get(), SIGNAL(readyRead()), 0, 0);
|
||||
disconnect(repl.get(), SIGNAL(downloadProgress(qint64, qint64)), 0, 0);
|
||||
disconnect(repl.get(), SIGNAL(finished()), 0, 0);
|
||||
emit ProgressChanged(episode_, PodcastDownload::NotDownloading, 0);
|
||||
// Delete the file
|
||||
file_->remove();
|
||||
emit finished(this);
|
||||
}
|
||||
|
||||
void Task::finishedInternal() {
|
||||
|
Loading…
x
Reference in New Issue
Block a user