From 05398dffc2b442e83117e4efed89d9c02f52842e Mon Sep 17 00:00:00 2001 From: trialuser02 Date: Sun, 21 Feb 2010 21:29:42 +0000 Subject: cue plugin: fixed bug with error message git-svn-id: http://svn.code.sf.net/p/qmmp-dev/code/trunk/qmmp@1563 90c681e8-e032-0410-971d-27865f9a5e38 --- src/plugins/Input/cue/decodercuefactory.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/plugins/Input/cue') diff --git a/src/plugins/Input/cue/decodercuefactory.cpp b/src/plugins/Input/cue/decodercuefactory.cpp index b57d46679..0d4109728 100644 --- a/src/plugins/Input/cue/decodercuefactory.cpp +++ b/src/plugins/Input/cue/decodercuefactory.cpp @@ -1,5 +1,5 @@ /*************************************************************************** - * Copyright (C) 2008-2009 by Ilya Kotov * + * Copyright (C) 2008-2010 by Ilya Kotov * * forkotov02@hotmail.ru * * * * This program is free software; you can redistribute it and/or modify * @@ -63,6 +63,8 @@ Decoder *DecoderCUEFactory::create(const QString &path, QIODevice *input) QList DecoderCUEFactory::createPlayList(const QString &fileName, bool useMetaData) { Q_UNUSED(useMetaData); + if(!QFile::exists(fileName)) + return QList(); CUEParser parser(fileName); return parser.createPlayList(); } -- cgit v1.2.3-13-gbd6f