Fix #410744: Duplicate results when a 2nd unit is partially written in krunner
When typing a conversion, and the second unit is partially written (i.e. "10€ to ru..." the results are duplicated by several times. This behavior happens with different categories of units (lenght, currency, ...) and on different languages.
The problem is that a new result is being added not once for every matching unit, but once for every matching stringUnit, generating the duplicates.
This is my first attempt to build kde from source and commit the diff to phabricator, so please excuse any possible mistakes.
Open krunner and type any conversion with a letter for the second unit: "10€ to r"
Result for each matching second unit is only shown one time
Reviewers: ngraham, broulik
Reviewed By: ngraham, broulik
Differential Revision: https://phabricator.kde.org/D23064