summaryrefslogtreecommitdiff
path: root/tizen
diff options
context:
space:
mode:
Diffstat (limited to 'tizen')
-rw-r--r--tizen/src/ui/input/keyboardshortcut.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/tizen/src/ui/input/keyboardshortcut.cpp b/tizen/src/ui/input/keyboardshortcut.cpp
index c14f2cfdb6..a5f598c8a3 100644
--- a/tizen/src/ui/input/keyboardshortcut.cpp
+++ b/tizen/src/ui/input/keyboardshortcut.cpp
@@ -87,11 +87,10 @@ void KeyboardShortcut::registerHwKeyShortcuts(QList<HardwareKey *> &list)
void KeyboardShortcut::cancelHwKeyShortcuts(QList<HardwareKey *> &list)
{
for (int index = 0; index < list.count(); index++) {
- delete hwKeyShortcutMap.value(list.at(index));
- hwKeyShortcutMap.remove(list.at(index));
+ delete hwKeyShortcutMap.take(list.at(index));
}
- qDebug() << hwKeyShortcutMap.count() << "shortcuts have been registered";
+ qDebug() << hwKeyShortcutMap.count() << "shortcuts have been unregistered";
}
void KeyboardShortcut::slotHwKeyShortcut(int keycode)