Commit 6c50678a authored by Shantanu Tushar's avatar Shantanu Tushar
Browse files

Check the currentUrl before attempting to play

parent 946cea29
......@@ -148,9 +148,11 @@ FocusScope {
function playCurrent()
{
playlistItem.active = true;
playlistItem.playRequested(playlistModel.currentUrl);
filterText.text = "";
if (playlistModel.currentUrl) {
playlistItem.active = true;
playlistItem.playRequested(playlistModel.currentUrl);
filterText.text = "";
}
}
}
}
......@@ -168,12 +170,12 @@ FocusScope {
playlistList.currentItem.requestPlayback();
}
function playCurrent()
function playTheCurrentInList()
{
if (playlistModel.currentIndex != -1) {
playlistList.playCurrent();
}
}
Component.onCompleted: playCurrent();
Component.onCompleted: playTheCurrentInList();
}
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment