1
0
mirror of https://github.com/clementine-player/Clementine synced 2024-12-28 10:30:38 +01:00

CopyToDeviceSlot is a wrong name

This commit is contained in:
Krzysztof A. Sobiecki 2014-01-27 13:46:43 +01:00
parent b0a97de603
commit 655d7e1989
2 changed files with 9 additions and 9 deletions

View File

@ -118,15 +118,15 @@ QStandardItem* PodcastService::CreateRootItem() {
return root_;
}
void PodcastService::CopyToDeviceSlot() {
void PodcastService::CopyToDevice() {
if (selected_episodes_.isEmpty() && explicitly_selected_podcasts_.isEmpty()) {
CopyToDeviceSlot(backend_->GetNewDownloadedEpisodes());
CopyToDevice(backend_->GetNewDownloadedEpisodes());
} else {
CopyToDeviceSlot(selected_episodes_, explicitly_selected_podcasts_);
CopyToDevice(selected_episodes_, explicitly_selected_podcasts_);
}
}
void PodcastService::CopyToDeviceSlot(const PodcastEpisodeList& episodes_list) {
void PodcastService::CopyToDevice(const PodcastEpisodeList& episodes_list) {
QList<Song> songs;
Podcast podcast;
for (const auto& episode : episodes_list) {
@ -140,7 +140,7 @@ void PodcastService::CopyToDeviceSlot(const PodcastEpisodeList& episodes_list) {
organise_dialog_->show();
}
void PodcastService::CopyToDeviceSlot(const QModelIndexList& episode_indexes,
void PodcastService::CopyToDevice(const QModelIndexList& episode_indexes,
const QModelIndexList& podcast_indexes) {
PodcastEpisode episode_tmp;
QList<Song> songs;
@ -334,7 +334,7 @@ void PodcastService::ShowContextMenu(const QPoint& global_pos) {
this, SLOT(DeleteDownloadedData()));
copy_to_device_ = context_menu_->addAction(
IconLoader::Load("multimedia-player-ipod-mini-blue"), tr("Copy to device..."),
this, SLOT(CopyToDeviceSlot()));
this, SLOT(CopyToDevice()));
remove_selected_action_ = context_menu_->addAction(
IconLoader::Load("list-remove"), tr("Unsubscribe"),
this, SLOT(RemoveSelectedPodcast()));

View File

@ -89,9 +89,9 @@ private slots:
void CurrentSongChanged(const Song& metadata);
void CopyToDeviceSlot();
void CopyToDeviceSlot(const PodcastEpisodeList& episodes_list);
void CopyToDeviceSlot(const QModelIndexList& episode_indexes,
void CopyToDevice();
void CopyToDevice(const PodcastEpisodeList& episodes_list);
void CopyToDevice(const QModelIndexList& episode_indexes,
const QModelIndexList& podcast_indexes);
private: