diff --git a/src/libtomahawk/utils/M3uLoader.cpp b/src/libtomahawk/utils/M3uLoader.cpp index ad3c4717a..c7c36ee68 100644 --- a/src/libtomahawk/utils/M3uLoader.cpp +++ b/src/libtomahawk/utils/M3uLoader.cpp @@ -111,7 +111,7 @@ M3uLoader::parseLine( const QString& line, const QFile& file ) { QFileInfo tmpFile( QUrl::fromUserInput( QString( line.simplified() ) ).toLocalFile() ); - if( tmpFile.exists() ) + if ( tmpFile.exists() ) { getTags( tmpFile ); } @@ -190,6 +190,7 @@ M3uLoader::parseM3u( const QString& fileLink ) } else emit tracks( m_tracks ); + m_tracks.clear(); } diff --git a/src/libtomahawk/utils/M3uLoader.h b/src/libtomahawk/utils/M3uLoader.h index fa541e1b0..bc99a6da4 100644 --- a/src/libtomahawk/utils/M3uLoader.h +++ b/src/libtomahawk/utils/M3uLoader.h @@ -47,6 +47,7 @@ public: public slots: void parse(); + private slots: void playlistCreated(); @@ -57,7 +58,7 @@ signals: private: void parseM3u( const QString& track ); void getTags( const QFileInfo& info ); - void parseLine(const QString& line , const QFile &file); + void parseLine(const QString& line , const QFile& file); QList< query_ptr > m_tracks; QString m_title, m_info, m_creator; bool m_single;