Summary: | Window views not updated when tag name changed in "Tag Filters" | ||
---|---|---|---|
Product: | [Applications] digikam | Reporter: | Michal Kolodziejczyk <miko> |
Component: | Tags-Engine | Assignee: | Digikam Developers <digikam-bugs-null> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | caulier.gilles |
Priority: | NOR | ||
Version: | unspecified | ||
Target Milestone: | --- | ||
Platform: | Unlisted Binaries | ||
OS: | Linux | ||
Latest Commit: | Version Fixed In: | 0.9.0 | |
Sentry Crash Report: |
Description
Michal Kolodziejczyk
2005-12-30 12:48:51 UTC
SVN commit 526683 by mwiesweg: Connect to signalAlbumRenamed in TagFolderView, tag renaming can be done by right sidebar as well. For me it is nicely refreshed in the thumbnail view, so I assume this is already fixed. BUG: 119234 M +19 -1 tagfolderview.cpp M +1 -0 tagfolderview.h --- trunk/extragear/graphics/digikam/digikam/tagfolderview.cpp #526682:526683 @@ -158,11 +158,13 @@ SLOT(slotAlbumAdded(Album*))); connect(d->albumMan, SIGNAL(signalAlbumDeleted(Album*)), SLOT(slotAlbumDeleted(Album*))); + connect(d->albumMan, SIGNAL(signalAlbumRenamed(Album*)), + SLOT(slotAlbumRenamed(Album*))); connect(d->albumMan, SIGNAL(signalAlbumsCleared()), SLOT(slotAlbumsCleared())); connect(d->albumMan, SIGNAL(signalAlbumIconChanged(Album*)), this, SLOT(slotAlbumIconChanged(Album*))); - connect(AlbumManager::instance(), SIGNAL(signalTAlbumMoved(TAlbum*, TAlbum*)), + connect(d->albumMan, SIGNAL(signalTAlbumMoved(TAlbum*, TAlbum*)), SLOT(slotAlbumMoved(TAlbum*, TAlbum*))); connect(this, SIGNAL(selectionChanged()), @@ -262,6 +264,22 @@ insertItem(item); } +void TagFolderView::slotAlbumRenamed(Album* album) +{ + if (!album) + return; + + TAlbum* tag = dynamic_cast<TAlbum*>(album); + if (!tag) + return; + + TagFolderViewItem* item = (TagFolderViewItem*)(tag->extraData(this)); + if (item) + { + item->setText(0, tag->title()); + } +} + void TagFolderView::slotSelectionChanged() { if (!active()) --- trunk/extragear/graphics/digikam/digikam/tagfolderview.h #526682:526683 @@ -66,6 +66,7 @@ void slotAlbumAdded(Album *); void slotSelectionChanged(); void slotAlbumDeleted(Album*); + void slotAlbumRenamed(Album*); void slotAlbumsCleared(); void slotAlbumIconChanged(Album* album); void slotAlbumMoved(TAlbum* tag, TAlbum* newParent); |