Permalink
Browse files

[kkc] fix the check for the keymap conflict was inverted

thanks to AWASHIRO Ikuya for the report.
  • Loading branch information...
m-shibata committed Apr 30, 2015
1 parent 5a98b50 commit 49c0045cd5d0262d73d6006db9f6074707247717
Showing with 1 addition and 1 deletion.
  1. +1 −1 gui/shortcutwidget.cpp
@@ -151,7 +151,7 @@ void KkcShortcutWidget::addShortcutClicked()
{
AddShortcutDialog dialog;
if (dialog.exec() == QDialog::Accepted) {
if (m_shortcutModel->add(dialog.shortcut())) {
if (!m_shortcutModel->add(dialog.shortcut())) {
QMessageBox::critical(this, _("Key Conflict"), _("Key to add is conflict with existing shortcut."));
}
}

0 comments on commit 49c0045

Please sign in to comment.