Fix #410744: Duplicate results when a 2nd unit is partially written in krunner
Summary: 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. Before: {F7202568} After: {F7202571} This is my first attempt to build kde from source and commit the diff to phabricator, so please excuse any possible mistakes. BUG: 410744 Test Plan: 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 Subscribers: plasma-devel Tags: #plasma Differential Revision: https://phabricator.kde.org/D23064
parent
bbd38325
Please register or sign in to comment