[KimDaBa] Ouch! (data loss)

Jesper K. Pedersen blackie at blackie.dk
Sun Jan 2 17:15:12 GMT 2005

Damn that code, I got this code as a patch a long time ago, and I've had no 
end of trouble with it :-(
I'll rewrite it myself right away, and put out a new snapshot as soon as done.

Hope you had a backup of your index.xml file.


On Sunday 02 January 2005 17:54, Robert L Krawitz wrote:
| This looks like the culprit.  Note that if the md5sum fails, it
| doesn't restore the images.
|         //remove every item of sorted from the images_list(the main list)
|         //because we add all the images from sorted afterwards
|         //(we would have them doubled if we wouldn't remove them)
|         for( ImageInfoListIterator it3( sorted );*it3; ++it3 ) {
|             if (!(images.removeRef((*it3)))){
|                 KMessageBox::error(0,i18n("MD5Sum failure; try recalcing
| your MD5Sums.")); return;
|             }
|         }
|         //insert sorted block of images in place of block of unsorted
| images // index represents the place of the first selected unsorted image
| for( ImageInfoListIterator it4( sorted );*it4; ++it4,index++){
| images.insert(index,(*it4));
|         }

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

http://ktown.kde.org/kimdaba might be the answer.

More information about the Kphotoalbum mailing list