[KPhotoAlbum] Tokens are not saved in XMLDB

Christoph Moseler forums at moseler.net
Wed Aug 9 15:43:57 BST 2006


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




More information about the Kphotoalbum mailing list