[Digikam-devel] [Bug 176472] Moving/Deleting all files from an album crashes digikam

yann LE HIR yann.lehir at gmail.com
Mon Dec 1 19:00:19 GMT 2008


http://bugs.kde.org/show_bug.cgi?id=176472





--- Comment #8 from yann LE HIR <yann lehir gmail com>  2008-12-01 20:00:18 ---
Yes, you're right about my patch , I completly forgot about this index changing
after a remove.
But with your patch the program will never delete the first element (id 0) of a
list which has 1 element.

So maybe doing something like that :

d->urlList.removeAt(index);
if (!d->imageInfoList.isEmpty())
    d->imageInfoList.removeAt(index);

if (index < d->urlList.size())
{
    // Try to get the next image in the current Album...
    d->urlCurrent       = d->urlList[index];
    d->imageInfoCurrent = d->imageInfoList[index];
    return true;
}
else if(index - 1 >= 0)
{
    // Try to get the previous image in the current Album.
    --index;
    d->urlCurrent       = d->urlList[index];
    d->imageInfoCurrent = d->imageInfoList[index];
    return true;
}


-- 
Configure bugmail: http://bugs.kde.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.



More information about the Digikam-devel mailing list