1
0
mirror of https://github.com/clementine-player/Clementine synced 2024-12-25 01:02:37 +01:00

Fix build error with QT < 4.7

This commit is contained in:
Andreas 2013-07-12 13:27:52 +02:00
parent 25b3dc8b09
commit 150345f2a6

View File

@ -342,7 +342,7 @@ void OutgoingDataCreator::CreateSong(
song_metadata->set_track(song.track()); song_metadata->set_track(song.track());
song_metadata->set_disc(song.disc()); song_metadata->set_disc(song.disc());
song_metadata->set_playcount(song.playcount()); song_metadata->set_playcount(song.playcount());
song_metadata->set_is_local(song.url().isLocalFile()); song_metadata->set_is_local(song.url().scheme() == "file");
song_metadata->set_filename(DataCommaSizeFromQString(song.basefilename())); song_metadata->set_filename(DataCommaSizeFromQString(song.basefilename()));
song_metadata->set_file_size(song.filesize()); song_metadata->set_file_size(song.filesize());
@ -563,7 +563,7 @@ void OutgoingDataCreator::SendSongs(const pb::remote::RequestDownloadSongs &requ
void OutgoingDataCreator::SendSingleSong(RemoteClient* client, const Song &song, void OutgoingDataCreator::SendSingleSong(RemoteClient* client, const Song &song,
int song_no, int song_count) { int song_no, int song_count) {
// Only local files!!! // Only local files!!!
if (!song.url().isLocalFile()) if (!(song.url().scheme() == "file"))
return; return;
// Calculate the number of chunks // Calculate the number of chunks