Summary: | Moving tags doesn't update the "tag counter" next to the tag name | ||
---|---|---|---|
Product: | [Applications] digikam | Reporter: | Andi Clemens <andi.clemens> |
Component: | Tags-Engine | Assignee: | Digikam Developers <digikam-bugs-null> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | languitar |
Priority: | NOR | ||
Version: | 1.3.0 | ||
Target Milestone: | --- | ||
Platform: | Arch Linux | ||
OS: | Linux | ||
Latest Commit: | Version Fixed In: | 1.2.0 | |
Sentry Crash Report: |
Description
Andi Clemens
2010-03-05 16:52:07 UTC
Johannes, I remember you have done some changes to AlbumManager to cache the result of the count maps. This should have fixed problems like this? I don't know what's going on here. Need to have a look at this but currently I don't have that much time any more as I started working on my master thesis. SVN commit 1100051 by jwienke: Update tag count after moving. Marcel, can this be a performance problem? For me this was nearly instant. The thing is, normally we know the counts before moving, so we could manipulate the count map directly, but this is the more safe way to my mind. CCMAIL: marcel.wiesweg@gmx.net BUG: 229574 M +2 -4 NEWS M +3 -0 digikam/albummanager.cpp WebSVN link: http://websvn.kde.org/?view=rev&revision=1100051 The tag map should not be changed at all when moving, shouldn't it? So there is no need to update the map from AlbumManager, if I did not miss something. But yes, the parents in the model need to re-count their children. I don't know. ;) I didn't really look into how this is computed. So you mean this is more an issue of AbstractCountingAlbumModel? SVN commit 1100402 by mwiesweg: No need to regenerate the map (which can be costly) but just update the state with the stored map. CCBUG: 229574 M +0 -3 digikam/albummanager.cpp M +15 -3 libs/models/abstractalbummodel.cpp M +4 -0 libs/models/abstractalbummodel.h WebSVN link: http://websvn.kde.org/?view=rev&revision=1100402 |