SVN commit 878340 by cgilles: try to set up collection label in DB from Setup panel. M +7 -2 setupcollections.cpp --- trunk/extragear/graphics/digikam/utilities/setup/setupcollections.cpp #878339:878340 @@ -367,10 +367,11 @@ if (lvItem) { QString path(lvItem->path()); + QString name(lvItem->name()); bool exist = false; for (QList::Iterator it2 = d->collections.begin(); - it2 != d->collections.end(); ++it2) + it2 != d->collections.end(); ++it2) { if ((*it2).albumRootPath() == path) exist = true; @@ -378,9 +379,13 @@ if (!exist) { - CollectionLocation location = manager->addLocation(KUrl(path)); + CollectionLocation location = manager->addLocation(KUrl(path), name); lvItem->setLocation(location); } + else + { + manager->setLabel(manager->locationForPath(path), name); + } } it++; }