mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-08-07 14:46:33 +02:00
ifdefs--: not needed anymore
This commit is contained in:
@@ -132,7 +132,6 @@ DatabaseCollection::stations()
|
|||||||
void
|
void
|
||||||
DatabaseCollection::autoPlaylistCreated( const source_ptr& source, const QVariantList& data )
|
DatabaseCollection::autoPlaylistCreated( const source_ptr& source, const QVariantList& data )
|
||||||
{
|
{
|
||||||
#ifndef ENABLE_HEADLESS
|
|
||||||
dynplaylist_ptr p( new DynamicPlaylist( source, //src
|
dynplaylist_ptr p( new DynamicPlaylist( source, //src
|
||||||
data[0].toString(), //current rev
|
data[0].toString(), //current rev
|
||||||
data[1].toString(), //title
|
data[1].toString(), //title
|
||||||
@@ -145,14 +144,12 @@ DatabaseCollection::autoPlaylistCreated( const source_ptr& source, const QVarian
|
|||||||
data[8].toInt(), //lastmod
|
data[8].toInt(), //lastmod
|
||||||
data[9].toString() ) ); //GUID
|
data[9].toString() ) ); //GUID
|
||||||
addAutoPlaylist( p );
|
addAutoPlaylist( p );
|
||||||
#endif
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
void
|
void
|
||||||
DatabaseCollection::stationCreated( const source_ptr& source, const QVariantList& data )
|
DatabaseCollection::stationCreated( const source_ptr& source, const QVariantList& data )
|
||||||
{
|
{
|
||||||
#ifndef ENABLE_HEADLESS
|
|
||||||
dynplaylist_ptr p( new DynamicPlaylist( source, //src
|
dynplaylist_ptr p( new DynamicPlaylist( source, //src
|
||||||
data[0].toString(), //current rev
|
data[0].toString(), //current rev
|
||||||
data[1].toString(), //title
|
data[1].toString(), //title
|
||||||
@@ -165,7 +162,6 @@ DatabaseCollection::stationCreated( const source_ptr& source, const QVariantList
|
|||||||
data[8].toInt(), //lastmod
|
data[8].toInt(), //lastmod
|
||||||
data[9].toString() ) ); //GUID
|
data[9].toString() ) ); //GUID
|
||||||
addStation( p );
|
addStation( p );
|
||||||
#endif
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@@ -87,7 +87,6 @@ DatabaseCommand_SetDynamicPlaylistRevision::controlsV()
|
|||||||
void
|
void
|
||||||
DatabaseCommand_SetDynamicPlaylistRevision::postCommitHook()
|
DatabaseCommand_SetDynamicPlaylistRevision::postCommitHook()
|
||||||
{
|
{
|
||||||
#ifndef ENABLE_HEADLESS
|
|
||||||
if ( source().isNull() || source()->collection().isNull() )
|
if ( source().isNull() || source()->collection().isNull() )
|
||||||
{
|
{
|
||||||
tDebug() << "Source has gone offline, not emitting to GUI.";
|
tDebug() << "Source has gone offline, not emitting to GUI.";
|
||||||
@@ -173,7 +172,6 @@ DatabaseCommand_SetDynamicPlaylistRevision::postCommitHook()
|
|||||||
|
|
||||||
if ( source()->isLocal() )
|
if ( source()->isLocal() )
|
||||||
Servent::instance()->triggerDBSync();
|
Servent::instance()->triggerDBSync();
|
||||||
#endif
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user