Bug 424401 - ORs get converted to ANDs in Edit filter
Summary: ORs get converted to ANDs in Edit filter
Status: REPORTED
Alias: None
Product: amarok
Classification: Applications
Component: Collection Browser (show other bugs)
Version: kf5
Platform: Ubuntu Linux
: NOR normal
Target Milestone: kf5
Assignee: Amarok Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-07-19 10:10 UTC by robert marshall
Modified: 2020-07-19 10:10 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description robert marshall 2020-07-19 10:10:00 UTC
SUMMARY

Set up a filter with an AND and an OR - if you then edit it and click OK the OR is converted to an AND

STEPS TO REPRODUCE
1. A silly example but it should work for others!
2. Set filter to playcount:>0 AND playcount:1 OR playcount:2
3. Click Edit Filter and you'll see that in the draggable selectors there's no OR (but there is in the plain text below
4. Click OK and the version with 2 ANDs is used and unsurprisingly the filter finds no tracks matching this constraint!

OBSERVED RESULT

Filter shows no tracks and a value of playcount:>0 AND playcount:1 AND playcount:2

EXPECTED RESULT

If you have tracks which have been listened to < 3 times I'd expect them to be displayed

SOFTWARE/OS VERSIONS
Windows: 
macOS: 
Linux/KDE Plasma: 
(available in About System)
KDE Plasma Version: 
KDE Frameworks Version: 5.68.0
Qt Version: 5.12.8

ADDITIONAL INFORMATION

This is a bug that was there before the Qt5 migration but I've only now got this simple example!