Do not test if both songs don't have CUE files

This commit is contained in:
Andrew Udvare 2011-03-06 03:31:04 +00:00
parent dabeab9360
commit 4fe36ad7b3

View File

@ -386,7 +386,7 @@ void Player::TrackAboutToEnd() {
Song next_song_ = next_item_->Metadata();
Song current_song_ = playlists_->active()->current_item()->Metadata();
bool same_cue_ = next_song_.cue_path() == current_song_.cue_path();
bool same_cue_ = (current_song_.has_cue() && next_song_.has_cue()) && (next_song_.cue_path() == current_song_.cue_path());
qint64 length_between_ = 0;
bool successive_ = false;