Commit 5e89a55e authored by Andrey Butirsky's avatar Andrey Butirsky Committed by Nate Graham
Browse files

fix broken keyboard configurations with single layout on Wayland

KConfigGroup::writeEntry() shouldn't be used with list - otherwise,
"VariantList=\\0" is saved for the list with single empty item, as a
measure to distinguish it from empty list.
We don't need it here as the list is read directly by external library
on load.

BUG: 433576

(cherry picked from commit 1c10a6f6)
parent b4e1688b
......@@ -187,7 +187,7 @@ void KeyboardConfig::save()
config.writeEntry("LayoutList", layoutStrings.join(LIST_SEPARATOR));
config.writeEntry("VariantList", variants);
config.writeEntry("VariantList", variants.join((LIST_SEPARATOR)));
config.writeEntry("DisplayNames", displayNames.join(LIST_SEPARATOR));
config.writeEntry("LayoutLoopCount", layoutLoopCount);
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment