Bug 424401

Summary: ORs get converted to ANDs in Edit filter
Product: [Applications] amarok Reporter: robert marshall <robert>
Component: Collection BrowserAssignee: Amarok Bugs <amarok-bugs-null>
Status: REPORTED ---    
Severity: normal    
Priority: NOR    
Version First Reported In: kf5   
Target Milestone: kf5   
Platform: Ubuntu   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

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!