mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-08-07 22:56:42 +02:00
* Silly style cleanups.
This commit is contained in:
@@ -245,6 +245,7 @@ Playlist::rename( const QString& title )
|
|||||||
Database::instance()->enqueue( QSharedPointer<DatabaseCommand>(cmd) );
|
Database::instance()->enqueue( QSharedPointer<DatabaseCommand>(cmd) );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
void
|
void
|
||||||
Playlist::setTitle( const QString& title )
|
Playlist::setTitle( const QString& title )
|
||||||
{
|
{
|
||||||
@@ -258,6 +259,7 @@ Playlist::setTitle( const QString& title )
|
|||||||
emit renamed( m_title, oldTitle );
|
emit renamed( m_title, oldTitle );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
void
|
void
|
||||||
Playlist::reportCreated( const playlist_ptr& self )
|
Playlist::reportCreated( const playlist_ptr& self )
|
||||||
{
|
{
|
||||||
@@ -282,6 +284,7 @@ Playlist::reportDeleted( const Tomahawk::playlist_ptr& self )
|
|||||||
emit deleted( self );
|
emit deleted( self );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
void
|
void
|
||||||
Playlist::addUpdater( PlaylistUpdaterInterface* updater )
|
Playlist::addUpdater( PlaylistUpdaterInterface* updater )
|
||||||
{
|
{
|
||||||
@@ -586,6 +589,7 @@ Playlist::addEntries( const QList<query_ptr>& queries, const QString& oldrev )
|
|||||||
emit tracksInserted( added, prevSize );
|
emit tracksInserted( added, prevSize );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
void
|
void
|
||||||
Playlist::insertEntries( const QList< query_ptr >& queries, const int position, const QString& oldrev )
|
Playlist::insertEntries( const QList< query_ptr >& queries, const int position, const QString& oldrev )
|
||||||
{
|
{
|
||||||
|
@@ -122,6 +122,7 @@ DynamicPlaylist::setMode( int mode )
|
|||||||
m_generator->setMode( (GeneratorMode)mode );
|
m_generator->setMode( (GeneratorMode)mode );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
dynplaylist_ptr
|
dynplaylist_ptr
|
||||||
DynamicPlaylist::load( const QString& guid )
|
DynamicPlaylist::load( const QString& guid )
|
||||||
{
|
{
|
||||||
@@ -395,6 +396,7 @@ DynamicPlaylist::setRevision( const QString& rev,
|
|||||||
Q_ARG( bool, applied ) );
|
Q_ARG( bool, applied ) );
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
if ( m_generator->type() != type ) { // new generator needed
|
if ( m_generator->type() != type ) { // new generator needed
|
||||||
m_generator = GeneratorFactory::create( type );
|
m_generator = GeneratorFactory::create( type );
|
||||||
}
|
}
|
||||||
@@ -467,7 +469,10 @@ DynamicPlaylist::setRevision( const QString& rev,
|
|||||||
Q_ARG( bool, applied ) );
|
Q_ARG( bool, applied ) );
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
if( m_generator->type() != type ) { // new generator needed
|
|
||||||
|
if ( m_generator->type() != type )
|
||||||
|
{
|
||||||
|
// new generator needed
|
||||||
m_generator = geninterface_ptr( GeneratorFactory::create( type ) );
|
m_generator = geninterface_ptr( GeneratorFactory::create( type ) );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user