diff options
Diffstat (limited to 'kxkb/extension.cpp')
-rw-r--r-- | kxkb/extension.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/kxkb/extension.cpp b/kxkb/extension.cpp index df61e2fa2..870ee7eb4 100644 --- a/kxkb/extension.cpp +++ b/kxkb/extension.cpp @@ -112,11 +112,9 @@ bool XKBExtension::setXkbOptions(const XkbOptions options) } if (!options.options.isEmpty()) { - p << "-option"; - if (options.resetOld) { - p << options.options; + p << "-option" << options.options; } else { @@ -132,7 +130,9 @@ bool XKBExtension::setXkbOptions(const XkbOptions options) newOptions << option; } } - p << newOptions.join(","); + if (!newOptions.isEmpty()) { + p << "-option" << newOptions.join(","); + } } } |