[KPhotoAlbum] Tokens are not saved in XMLDB

Jesper K. Pedersen blackie at blackie.dk
Fri Aug 11 00:38:37 BST 2006


Actually it required a bit more than that, but it should be fixed now.

Cheers
Jesper.
On Wednesday 09 August 2006 10:43, Christoph Moseler wrote:
| Hi,
|
| it seems, that in the svn-version tokens are not saved properly. In the
| main view it shows the correct number of Tokens in the "count"-column,
| but if I click on the Tokens category I just see one category "no Tokens".
|
| I don't have a clou why it's not working when saving the index.xml
| uncompressed, but if it's saved compressed, it can't work in my opinion:
| In an image-tag there's only a reference (Tokens="1"), but the relation
| Tokenletter <=> Tokenid is not saved in <Categories>. So that
| information get lost.
|
| I workarounded it by changing the XMLDB/FileWriter.cpp:
|
| --- XMLDB/FileWriter.cpp        (revision 571376)
| +++ XMLDB/FileWriter.cpp        (working copy)
| @@ -76,7 +76,7 @@
|           opt.setAttribute( QString::fromLatin1( "viewsize" ),
| category->viewSize() );
|           opt.setAttribute( QString::fromLatin1( "viewtype" ),
| category->viewType() );
|
| -        if ( category->isSpecialCategory() )
| +        if ( category->isSpecialCategory() && name !=
| QString::fromLatin1( "Tokens"))
|               continue;
|
|           QStringList list = category->items();
|
|
| Cheers,
| Christoph
|
| _______________________________________________
| KPhotoAlbum mailing list
| KPhotoAlbum at kdab.net
| http://mail.kdab.net/mailman/listinfo/kphotoalbum

-- 
Having trouble finding a given image in your collection containing
thousands of images?

http://www.kphotoalbum.org might be the answer.




More information about the Kphotoalbum mailing list