mirror of
https://github.com/clementine-player/Clementine
synced 2025-01-14 02:35:55 +01:00
Remove useless check.
No need to check isNull if you're checking isEmpty (see http://qt-project.org/doc/qt-4.8/qstring.html#distinction-between-null-and-empty-strings "A null string is always empty").
This commit is contained in:
parent
7ddf3aab45
commit
dac137cf11
@ -175,7 +175,7 @@ Song PodcastEpisode::ToSong(const Podcast& podcast) const {
|
||||
ret.set_album(podcast.title().simplified());
|
||||
ret.set_art_automatic(podcast.ImageUrlLarge().toString());
|
||||
|
||||
if (author().isNull() || author().isEmpty())
|
||||
if (author().isEmpty())
|
||||
ret.set_artist(podcast.title().simplified());
|
||||
}
|
||||
return ret;
|
||||
|
Loading…
Reference in New Issue
Block a user