Changeset View
Changeset View
Standalone View
Standalone View
runners/converter/converterrunner.cpp
Context not available. | |||||
213 | QList<KUnitConversion::Unit> matchingUnits; | 213 | QList<KUnitConversion::Unit> matchingUnits; | ||
---|---|---|---|---|---|
214 | foreach (const QString& s, unitStrings) { | 214 | foreach (const QString& s, unitStrings) { | ||
215 | if (s.startsWith(unit2, Qt::CaseInsensitive)) { | 215 | if (s.startsWith(unit2, Qt::CaseInsensitive)) { | ||
216 | matchingUnits << category.unit(s); | 216 | u = category.unit(s); | ||
217 | if (!matchingUnits.contains(u)) { | ||||
218 | matchingUnits << u; | ||||
219 | } | ||||
217 | } | 220 | } | ||
218 | } | 221 | } | ||
219 | units = matchingUnits; | 222 | units = matchingUnits; | ||
Context not available. |