summaryrefslogtreecommitdiffstats
path: root/kxkb/kcmlayout.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'kxkb/kcmlayout.cpp')
-rw-r--r--kxkb/kcmlayout.cpp29
1 files changed, 16 insertions, 13 deletions
diff --git a/kxkb/kcmlayout.cpp b/kxkb/kcmlayout.cpp
index f9fbf3c59..a2f0889f1 100644
--- a/kxkb/kcmlayout.cpp
+++ b/kxkb/kcmlayout.cpp
@@ -718,20 +718,23 @@ TQWidget* LayoutConfig::makeOptionsTab()
if (pos >= 0)
{
OptionListItem *parent = m_optionGroups[key.left(pos)];
- if (parent == NULL )
- parent = m_optionGroups["misc"];
- if (parent != NULL) {
- // workaroung for mistake in rules file for xkb options in XFree 4.2.0
- TQString text(it.current());
- text = text.replace( "Cap$", "Caps." );
- if ( parent->type() == TQCheckListItem::CheckBoxController
- || key.startsWith("grp:"))
- new OptionListItem(parent, XkbRules::trOpt(text),
- TQCheckListItem::CheckBox, key);
- else
- new OptionListItem(parent, XkbRules::trOpt(text),
- TQCheckListItem::RadioButton, key);
+ if (parent == NULL ) { // All unparanted options go into "custom" group
+ parent = m_optionGroups["custom"];
+ if (parent == NULL ) {
+ parent = new OptionListItem(listView, XkbRules::trOpt( I18N_NOOP("Miscellaneous options") ),
+ TQCheckListItem::CheckBoxController, "custom");
+ }
}
+ // workaroung for mistake in rules file for xkb options in XFree 4.2.0
+ TQString text(it.current());
+ text = text.replace( "Cap$", "Caps." );
+ if ( parent->type() == TQCheckListItem::CheckBoxController
+ || key.startsWith("grp:"))
+ new OptionListItem(parent, XkbRules::trOpt(text),
+ TQCheckListItem::CheckBox, key);
+ else
+ new OptionListItem(parent, XkbRules::trOpt(text),
+ TQCheckListItem::RadioButton, key);
}
}