summaryrefslogtreecommitdiffstats
path: root/kxkb
diff options
context:
space:
mode:
Diffstat (limited to 'kxkb')
-rw-r--r--kxkb/extension.cpp2
-rw-r--r--kxkb/kxkb.cpp3
2 files changed, 3 insertions, 2 deletions
diff --git a/kxkb/extension.cpp b/kxkb/extension.cpp
index ca812b011..0c7898938 100644
--- a/kxkb/extension.cpp
+++ b/kxkb/extension.cpp
@@ -174,7 +174,7 @@ void XKBExtension::processXEvent(XEvent *event) {
if (xkb_event->any.xkb_type == XkbStateNotify &&
xkb_event->state.changed & XkbGroupStateMask)
{
- emit groupChanged(xkb_event->state.group);
+ emit groupChanged((uint)xkb_event->state.group);
}
}
diff --git a/kxkb/kxkb.cpp b/kxkb/kxkb.cpp
index 92b12472b..320b55f40 100644
--- a/kxkb/kxkb.cpp
+++ b/kxkb/kxkb.cpp
@@ -290,7 +290,8 @@ void KXKBApp::menuActivated(int id)
void KXKBApp::slotGroupChanged(uint group)
{
- if (group < 0 || group >= kxkbConfig.m_layouts.count()) {
+ kdDebug() << "slotGroupChanged: " << group << ", layout count: " << kxkbConfig.m_layouts.count() << endl;
+ if (group >= kxkbConfig.m_layouts.count()) {
if (m_tray) {
m_tray->setError(i18n("Unknown"));
}