-
Committer:
Pino Toscano
-
Date:
2020-07-06 18:08:41 UTC
-
Revision ID:
git-v1:ad002ae9ab9f8865097fe5db8b07e6a1a4e41817
KSaneOptCombo: refactor handling of string values
We need to handle the string values as untranslated when getting/setting
them, otherwise it breaks when saving them to file, or checking for
a specific combobox value.
Hence, refactor genComboStringList() so it returns a list of pairs of
<identifier, translated string>, adding the translated strings as texts
in the combobox, with the identifiers as item data. Then, use the item
data to get/set the value we want.