[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: extragear/graphics/digikam/utilities/setup
From: Gilles Caulier <caulier.gilles () gmail ! com>
Date: 2008-10-31 23:10:08
Message-ID: 1225494608.188735.16077.nullmailer () svn ! kde ! org
[Download RAW message or body]
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<CollectionLocation>::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++;
}
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic