diff options
author | Alexander Golubev <fatzer2@gmail.com> | 2024-02-07 14:15:49 +0300 |
---|---|---|
committer | Michele Calgaro <michele.calgaro@yahoo.it> | 2024-02-08 18:52:17 +0900 |
commit | cfbf60a0c78c9d9e5e390e2eb77d4c8c7b1b55eb (patch) | |
tree | e54063e906c51cc7d7efecdc8adef0a5da9949d1 /kxkb/extension.cpp | |
parent | 28b6fb9bca417fc77b27d9f09fd0516d9efce657 (diff) | |
download | tdebase-cfbf60a0c78c9d9e5e390e2eb77d4c8c7b1b55eb.tar.gz tdebase-cfbf60a0c78c9d9e5e390e2eb77d4c8c7b1b55eb.zip |
kxkb: handle resetOld correctly in cases if all opions already set
Closes: https://mirror.git.trinitydesktop.org/gitea/TDE/tdebase/issues/391
Signed-off-by: Alexander Golubev <fatzer2@gmail.com>
(cherry picked from commit d0c145d5a3bc3dfa286bc25912b34b902660cc1f)
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(","); + } } } |