Permalink
Browse files

Fixed bug with favorites

  • Loading branch information...
1 parent 1b2d313 commit cb62d5c568daa5f89ffe3cf4da024ece9d12591e @niktischenko committed Aug 26, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/playerform.cpp
View
@@ -322,7 +322,7 @@ void PlayerForm::_add_to_favorites() {
int id = idx.first().row();
Track cur = _current_playlist.tracks().at(id);
QUrl url(cur.source());
- if (url.isValid() && url.scheme() != "file") {
+ if (url.isValid() && !url.scheme().isEmpty() && url.scheme() != "file") {
return;
}
if (!cur.source().isEmpty()) {

0 comments on commit cb62d5c

Please sign in to comment.