https://bugs.kde.org/show_bug.cgi?id=437714

            Bug ID: 437714
           Summary: Saved search with "->" in name confuses digiKam: A
                    search group of this or another search is added to
                    existing searches when editing them
           Product: digikam
           Version: 7.2.0
          Platform: Appimage
                OS: Linux
            Status: REPORTED
          Severity: normal
          Priority: NOR
         Component: Searches-Advanced
          Assignee: digikam-bugs-n...@kde.org
          Reporter: johannes.lists+bugs.kde....@tannenhof-imshausen.de
  Target Milestone: ---

SUMMARY
Saved search with "->" in name confuses digiKam: A search group of this or
another saved search is added to existing saved searches when editing them

STEPS TO REPRODUCE
1. Create (several) saved searches.
2. Create a saved search with 3 search groups, combined by AND. The XML of my
saved search is:
"<?xml version="1.0"?><search><group><field name="tagid"
relation="equal">286</field></group><group operator="and"><field name="tagid"
relation="equal">84</field></group><group operator="andnot"
fieldoperator="or"><field name="keyword"
relation="like">Dropbox</field></group></search>
"
3. Name this search: Test -> Saved searches
4. Right click on the saved search -> Edit -> Cancel
5. Open another saved search, Right click -> Edit 


OBSERVED RESULT

The last search group of "Test -> Saved searches" (or sometimes a search group
from another saved search) is added at the end. When saving the search, you
will  find this confirmed by looking in the database, Table Searches, the XML
got changed.

When removing the ">"-character from the name of the saved search, after
restarting, the saved searches aren't altered anymore.


EXPECTED RESULT

The naming of saved searches leads to no confusion of digiKam and does not
change other saved searches when editing them.


SOFTWARE/OS VERSIONS

Linux/KDE Plasma: Ubuntu Linux 18.04.05

KDE Frameworks 5.78.0
Qt 5.14.2 (built against 5.14.2)

ADDITIONAL INFORMATION

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to