[Digikam-devel] [Bug 161369] Quick filter indicator lamp is not working properly in recursive image folder view mode

Andi Clemens andi.clemens at gmx.net
Tue Jun 17 13:42:15 BST 2008


------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
         
http://bugs.kde.org/show_bug.cgi?id=161369         




------- Additional Comments From andi.clemens gmx net  2008-06-17 14:42 -------
I tested again the indicator lamp issue, and the problem is that filtering is done for every single image... look at albumlister.cpp:617-632:

ImageInfo* info = new ImageInfo(imageID, albumID, name,
                                        QDateTime::fromString(date, Qt::ISODate),
                                        size, dims);

        if (matchesFilter(info, foundText))
        {
            match = true;
            newFilteredItemsList.append(info);
        }

        newItemsList.append(info);
        d->itemList.append(info);

        if (foundText)
            matchForText = true;

Every single time the two boolean vars matchForText and match are set so in recursive album view this results in the described problem.
We have to call the slotFilterItems() or the timer instead of emitting the two signals in line 634 so the new filtered imagelist is scanned and the lamp is set to either green or red.



More information about the Digikam-devel mailing list