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