From 150345f2a6164cf3c4b466ab01b199d0c02d1e8f Mon Sep 17 00:00:00 2001 From: Andreas Date: Fri, 12 Jul 2013 13:27:52 +0200 Subject: [PATCH] Fix build error with QT < 4.7 --- src/networkremote/outgoingdatacreator.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/networkremote/outgoingdatacreator.cpp b/src/networkremote/outgoingdatacreator.cpp index 16b2bff8c..3bfffeb31 100644 --- a/src/networkremote/outgoingdatacreator.cpp +++ b/src/networkremote/outgoingdatacreator.cpp @@ -342,7 +342,7 @@ void OutgoingDataCreator::CreateSong( song_metadata->set_track(song.track()); song_metadata->set_disc(song.disc()); 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_file_size(song.filesize()); @@ -563,7 +563,7 @@ void OutgoingDataCreator::SendSongs(const pb::remote::RequestDownloadSongs &requ void OutgoingDataCreator::SendSingleSong(RemoteClient* client, const Song &song, int song_no, int song_count) { // Only local files!!! - if (!song.url().isLocalFile()) + if (!(song.url().scheme() == "file")) return; // Calculate the number of chunks