[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: branches/extragear/graphics/digikam/core/libs/database
From: Gilles Caulier <caulier.gilles () gmail ! com>
Date: 2011-02-02 10:21:14
Message-ID: 20110202102114.82EAEAC8BD () svn ! kde ! org
[Download RAW message or body]
SVN commit 1218444 by cgilles:
hack and debug.
Marcel : look like Color LAbel tags assignement doesn't work. (see debug trace for details)
CCMAIL : marcel.wiesweg@gmx.de
M +12 -3 imageinfo.cpp
--- branches/extragear/graphics/digikam/core/libs/database/imageinfo.cpp #1218443:1218444
@@ -378,8 +378,11 @@
if (!m_data->colorLabelCached)
{
m_data.constCastData()->colorLabel = NoneLabel;
+ QList<int> tags = tagIds();
- foreach(int tagId, tagIds())
+ kDebug() << tags;
+
+ foreach(int tagId, tags)
{
for (int i = NoneLabel ; i <= WhiteLabel; ++i)
{
@@ -1031,14 +1034,20 @@
int tagId = tc->getTagForColorLabel((ColorLabel)colorId);
if (!tagId) return;
+ kDebug() << "Before to assign Color Label: " << tagIds();
+
// Color Label is an exclusive tags.
for (int i = NoneLabel ; i <= WhiteLabel ; ++i)
removeTag(tc->getTagForColorLabel((ColorLabel)i));
- kDebug() << colorId << " :: " << tagId;
+ kDebug() << "All Color Label removed: " << tagIds();
+
setTag(tagId);
- m_data->colorLabel = tagId;
+
+ kDebug() << "Color Label assigned: " << colorId << " :: " << tagId << " (" << tagIds() << ")";
+
+ m_data->colorLabel = colorId;
m_data.constCastData()->colorLabelCached = true;
}
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic