Revision af28071...

Go back to digest for 27th January 2013

Optimization in KDE Base

Vishesh Handa committed changes in [kde-baseapps/KDE/4.10] dolphin/src/kitemviews/kfileitemmodelrolesupdater.cpp:

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.

REVIEW: 108543

File Changes

Modified 1 files
  • dolphin/src/kitemviews/kfileitemmodelrolesupdater.cpp
1 files changed in total