KFileItemModelRolesUpdater: Avoid multiple updates for Nepomuk data

Review Request #108543 - Created Jan. 22, 2013 and submitted

Information
Vishesh Handa
kde-baseapps
Reviewers
dolphin
freininghaus
    KFileItemModelRolesUpdater: Avoid multiple updates for Nepomuk data
    
    The Nepomuk ResourceWatcher emits 3 signals - propertyChanged,
    propertyAdded and propertyRemoved. We should only listen to either the
    propertyChanged signal or the propertyAdded + Removed signals. There is
    no point in listening to all 3 signals. That will just result in
    unnecessary updates.
    
    Additionally, we do not need to listen to the resourceCreated signal.
    That is only emitted when we are watching for a specific types, which we
    are not.
Updates work as expected.
Frank Reininghaus
Commit Hook
Vishesh Handa
Review request changed

Status: Closed (submitted)

Loading...