Commit 181a497e authored by Dirk Wilden's avatar Dirk Wilden
Browse files

fixed the shortcut disappear bug :)

git-svn-id: http://www.openflipper.org/svnrepo/OpenFlipper/branches/Free@4270 383ad7c9-94d9-4d36-a494-682f7c89f535
parent 36de7593
......@@ -241,15 +241,15 @@ void CoreWidget::slotAddKeyMapping(int _key, Qt::KeyboardModifiers _modifiers, Q
return;
}
//now we can add the mapping
keys_.insert ( std::make_pair( keyCombi , std::make_pair(_plugin, _keyBindingID) ));
invKeys_.insert( std::make_pair( std::make_pair(_plugin, _keyBindingID), keyCombi ));
if (replace){
keys_.erase(oldCombi);
invKeys_.erase(oldTarget);
}
//now we can add the mapping
keys_.insert ( std::make_pair( keyCombi , std::make_pair(_plugin, _keyBindingID) ));
invKeys_.insert( std::make_pair( std::make_pair(_plugin, _keyBindingID), keyCombi ));
}
/// if a keyPressEvent belongs to the core this functions is called
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment