Commit 5d3a7906 authored by Hugo Beauzée-Luyssen's avatar Hugo Beauzée-Luyssen
Browse files

Media: Extract isPresent flag from the sql request

This is mostly aiming at future proofness, in case we combine multiple
fetches in a single request. Having an unextracted column would cause it
to be extracted as the first column of the next entity.
parent 4e44e9c5
...@@ -62,7 +62,8 @@ Media::Media( DBConnection dbConnection, sqlite::Row& row ) ...@@ -62,7 +62,8 @@ Media::Media( DBConnection dbConnection, sqlite::Row& row )
>> m_insertionDate >> m_insertionDate
>> m_thumbnail >> m_thumbnail
>> m_title >> m_title
>> m_isFavorite; >> m_isFavorite
>> m_isPresent;
} }
Media::Media( const std::string& title, Type type ) Media::Media( const std::string& title, Type type )
......
...@@ -121,6 +121,7 @@ private: ...@@ -121,6 +121,7 @@ private:
std::string m_thumbnail; std::string m_thumbnail;
std::string m_title; std::string m_title;
bool m_isFavorite; bool m_isFavorite;
bool m_isPresent;
// Auto fetched related properties // Auto fetched related properties
mutable Cache<AlbumTrackPtr> m_albumTrack; mutable Cache<AlbumTrackPtr> m_albumTrack;
......
Supports Markdown
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