Commit 1ed5704b authored by Hugo Beauzée-Luyssen's avatar Hugo Beauzée-Luyssen
Browse files

Use cache accessor to fetch a file's album track

parent 7e30f235
...@@ -65,8 +65,7 @@ std::shared_ptr<IAlbumTrack> File::albumTrack() ...@@ -65,8 +65,7 @@ std::shared_ptr<IAlbumTrack> File::albumTrack()
{ {
if ( m_albumTrack == nullptr && m_albumTrackId != 0 ) if ( m_albumTrack == nullptr && m_albumTrackId != 0 )
{ {
const char* req = "SELECT * FROM AlbumTrack WHERE id_track = ?"; m_albumTrack = AlbumTrack::fetch( m_dbConnection, m_albumTrackId );
m_albumTrack = SqliteTools::fetchOne<AlbumTrack>( m_dbConnection, req, m_albumTrackId );
} }
return m_albumTrack; return m_albumTrack;
} }
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment