From aecf8592751e7beb682fcd5bc8c5b1d38335fa84 Mon Sep 17 00:00:00 2001 From: trialuser02 Date: Sat, 22 Dec 2012 19:16:29 +0000 Subject: libqmmpui: added URL dialog implementation, added PlayListDownloader class git-svn-id: http://svn.code.sf.net/p/qmmp-dev/code/trunk/qmmp@3089 90c681e8-e032-0410-971d-27865f9a5e38 --- src/qmmpui/playlistmodel.cpp | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'src/qmmpui/playlistmodel.cpp') diff --git a/src/qmmpui/playlistmodel.cpp b/src/qmmpui/playlistmodel.cpp index 6f67e6e22..83038a2bd 100644 --- a/src/qmmpui/playlistmodel.cpp +++ b/src/qmmpui/playlistmodel.cpp @@ -841,11 +841,8 @@ void PlayListModel::doCurrentVisibleRequest() void PlayListModel::loadPlaylist(const QString &f_name) { PlayListFormat* prs = PlayListParser::findByPath(f_name); - if(!prs) - { - //qWarning("PlayListModel: unsupported playlist format"); + if(!prs || !QFile::exists(f_name)) return; - } QFile file(f_name); if (!file.open(QIODevice::ReadOnly)) -- cgit v1.2.3-13-gbd6f