Commit 88b7c2d8 authored by Jan Möbius's avatar Jan Möbius

When add ing context menus, remove the accelerators & to avoid matching failiures

git-svn-id: http://www.openflipper.org/svnrepo/OpenFlipper/branches/Free@11306 383ad7c9-94d9-4d36-a494-682f7c89f535
parent 20ea5c1a
......@@ -534,8 +534,13 @@ bool CoreWidget::addContextMenus( QMenu* _menu , ContextMenuType _type , int _id
//this plugin adds all context menus, no special configuration so far.
visible = viewModes_[0]->visibleContextMenus;
}
// Remove Plugin Name from string
visible.replaceInStrings(QRegExp(".*>"), "");
// Remove accelerator specifications
visible.replaceInStrings("&", "");
while (it.hasNext()) {
it.next();
if (visible.contains(it.key())) {
......
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