mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-08-08 15:16:34 +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) );
|
||||
}
|
||||
|
||||
|
||||
void
|
||||
Playlist::setTitle( const QString& title )
|
||||
{
|
||||
@@ -258,6 +259,7 @@ Playlist::setTitle( const QString& title )
|
||||
emit renamed( m_title, oldTitle );
|
||||
}
|
||||
|
||||
|
||||
void
|
||||
Playlist::reportCreated( const playlist_ptr& self )
|
||||
{
|
||||
@@ -282,6 +284,7 @@ Playlist::reportDeleted( const Tomahawk::playlist_ptr& self )
|
||||
emit deleted( self );
|
||||
}
|
||||
|
||||
|
||||
void
|
||||
Playlist::addUpdater( PlaylistUpdaterInterface* updater )
|
||||
{
|
||||
@@ -586,6 +589,7 @@ Playlist::addEntries( const QList<query_ptr>& queries, const QString& oldrev )
|
||||
emit tracksInserted( added, prevSize );
|
||||
}
|
||||
|
||||
|
||||
void
|
||||
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 );
|
||||
}
|
||||
|
||||
|
||||
dynplaylist_ptr
|
||||
DynamicPlaylist::load( const QString& guid )
|
||||
{
|
||||
@@ -395,6 +396,7 @@ DynamicPlaylist::setRevision( const QString& rev,
|
||||
Q_ARG( bool, applied ) );
|
||||
return;
|
||||
}
|
||||
|
||||
if ( m_generator->type() != type ) { // new generator needed
|
||||
m_generator = GeneratorFactory::create( type );
|
||||
}
|
||||
@@ -467,7 +469,10 @@ DynamicPlaylist::setRevision( const QString& rev,
|
||||
Q_ARG( bool, applied ) );
|
||||
return;
|
||||
}
|
||||
if( m_generator->type() != type ) { // new generator needed
|
||||
|
||||
if ( m_generator->type() != type )
|
||||
{
|
||||
// new generator needed
|
||||
m_generator = geninterface_ptr( GeneratorFactory::create( type ) );
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user