1
0
mirror of https://github.com/tomahawk-player/tomahawk.git synced 2025-08-12 09:04:33 +02:00

Remove change from yesterday, as apparently m_lastCmdGuid doesn't do what I thought it does for local sources

This commit is contained in:
Jeff Mitchell
2013-03-06 03:22:21 -05:00
parent 372ab8931a
commit 2b63e6e5bb

View File

@@ -33,14 +33,6 @@ DatabaseCommand_LoadAllSources::exec( DatabaseImpl* dbi )
{
TomahawkSqlQuery query = dbi->newquery();
query.exec( QString( "SELECT guid "
"FROM oplog "
"WHERE source IS NULL "
"ORDER BY id DESC LIMIT 1" ) );
if ( query.next() )
if ( SourceList::instance() && !SourceList::instance()->getLocal().isNull() )
SourceList::instance()->getLocal()->setLastCmdGuid( query.value( 0 ).toString() );
query.exec( QString( "SELECT id, name, friendlyname, lastop "
"FROM source" ) );