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

MediaLibrary: Remove hook on Playlist::MediaRelationTable

Those would cause the relation table rowid to be used, which is of no
use to the application as the table is not publicly accessible
parent d1c01b6f
......@@ -557,10 +557,6 @@ void MediaLibrary::registerEntityHooks()
else if ( reason == sqlite::Connection::HookReason::Update )
m_modificationNotifier->notifyPlaylistModification( rowId );
});
m_dbConnection->registerUpdateHook( Playlist::MediaRelationTable::Name,
[this]( sqlite::Connection::HookReason, int64_t rowId ) {
m_modificationNotifier->notifyPlaylistModification( rowId );
});
m_dbConnection->registerUpdateHook( Genre::Table::Name,
[this]( sqlite::Connection::HookReason reason, int64_t rowId ) {
if ( reason == sqlite::Connection::HookReason::Delete )
......
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