Commit 5cbac50f authored by Andrey Butirsky's avatar Andrey Butirsky
Browse files

fix: the first keyboard layout can't have variants

We need trailing comma in case of multiple layouts but only one variant,
see https://github.com/xkbcommon/libxkbcommon/issues/208

BUG: 432367
parent 63edcc6c
......@@ -177,7 +177,9 @@ void KeyboardConfig::save()
}
auto cleanTail = [](QStringList &list) {
while (!list.isEmpty() && list.constLast().isEmpty()) {
// we need trailing comma in case of multiple layouts but only one variant,
// see https://github.com/xkbcommon/libxkbcommon/issues/208
while (list.size() > 2 && list.constLast().isEmpty()) {
list.removeLast();
}
};
......
Supports Markdown
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