mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-08-24 14:42:53 +02:00
Style fixes for M3uLoader.
This commit is contained in:
@@ -111,7 +111,7 @@ M3uLoader::parseLine( const QString& line, const QFile& file )
|
|||||||
{
|
{
|
||||||
QFileInfo tmpFile( QUrl::fromUserInput( QString( line.simplified() ) ).toLocalFile() );
|
QFileInfo tmpFile( QUrl::fromUserInput( QString( line.simplified() ) ).toLocalFile() );
|
||||||
|
|
||||||
if( tmpFile.exists() )
|
if ( tmpFile.exists() )
|
||||||
{
|
{
|
||||||
getTags( tmpFile );
|
getTags( tmpFile );
|
||||||
}
|
}
|
||||||
@@ -190,6 +190,7 @@ M3uLoader::parseM3u( const QString& fileLink )
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
emit tracks( m_tracks );
|
emit tracks( m_tracks );
|
||||||
|
|
||||||
m_tracks.clear();
|
m_tracks.clear();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@@ -47,6 +47,7 @@ public:
|
|||||||
|
|
||||||
public slots:
|
public slots:
|
||||||
void parse();
|
void parse();
|
||||||
|
|
||||||
private slots:
|
private slots:
|
||||||
void playlistCreated();
|
void playlistCreated();
|
||||||
|
|
||||||
@@ -57,7 +58,7 @@ signals:
|
|||||||
private:
|
private:
|
||||||
void parseM3u( const QString& track );
|
void parseM3u( const QString& track );
|
||||||
void getTags( const QFileInfo& info );
|
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;
|
QList< query_ptr > m_tracks;
|
||||||
QString m_title, m_info, m_creator;
|
QString m_title, m_info, m_creator;
|
||||||
bool m_single;
|
bool m_single;
|
||||||
|
Reference in New Issue
Block a user