mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-08-06 22:26:32 +02:00
* Fixed retrieving queries in Playlist & LoadPlaylistEntries.
This commit is contained in:
@@ -56,7 +56,7 @@ void DatabaseCommand_LoadPlaylistEntries::generateEntries( DatabaseImpl* dbi )
|
|||||||
e->setLastmodified( 0 ); // TODO e->lastmodified = query.value(6).toInt();
|
e->setLastmodified( 0 ); // TODO e->lastmodified = query.value(6).toInt();
|
||||||
e->setResultHint( query.value( 8 ).toString() );
|
e->setResultHint( query.value( 8 ).toString() );
|
||||||
|
|
||||||
Tomahawk::query_ptr q = Tomahawk::Query::get( query.value( 2 ).toString(), query.value( 1 ).toString(), query.value( 3 ).toString(), false );
|
Tomahawk::query_ptr q = Tomahawk::Query::get( query.value( 2 ).toString(), query.value( 1 ).toString(), query.value( 3 ).toString() );
|
||||||
q->setResultHint( query.value( 8 ).toString() );
|
q->setResultHint( query.value( 8 ).toString() );
|
||||||
e->setQuery( q );
|
e->setQuery( q );
|
||||||
|
|
||||||
|
@@ -91,7 +91,7 @@ ControlConnection::setup()
|
|||||||
void
|
void
|
||||||
ControlConnection::registerSource()
|
ControlConnection::registerSource()
|
||||||
{
|
{
|
||||||
qDebug() << Q_FUNC_INFO;
|
qDebug() << Q_FUNC_INFO << m_source->id();
|
||||||
Source* source = (Source*) sender();
|
Source* source = (Source*) sender();
|
||||||
Q_ASSERT( source == m_source.data() );
|
Q_ASSERT( source == m_source.data() );
|
||||||
// .. but we'll use the shared pointer we've already made:
|
// .. but we'll use the shared pointer we've already made:
|
||||||
|
@@ -28,7 +28,7 @@ PlaylistEntry::setQueryVariant( const QVariant& v )
|
|||||||
QString artist = m.value( "artist" ).toString();
|
QString artist = m.value( "artist" ).toString();
|
||||||
QString album = m.value( "album" ).toString();
|
QString album = m.value( "album" ).toString();
|
||||||
QString track = m.value( "track" ).toString();
|
QString track = m.value( "track" ).toString();
|
||||||
m_query = Tomahawk::Query::get( artist, track, album, false );
|
m_query = Tomahawk::Query::get( artist, track, album );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user