Skip to content

Commit

Permalink
Ignore '&' when comparing (sorting) plugin menu strings on Mac. Other…
Browse files Browse the repository at this point in the history
… platforms automatically ignore it but Mac doesn't have '&' shortcuts.

git-svn-id: http://svn.osgeo.org/qgis/trunk@9272 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
telwertowski committed Sep 6, 2008
1 parent 00d8a8c commit 3432a15
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/app/qgisapp.cpp
Expand Up @@ -4730,6 +4730,11 @@ QMenu* QgisApp::getPluginMenu( QString menuName )
* present, there is no python separator and the plugin list is at the bottom
* of the menu.
*/
#ifdef Q_WS_MAC
// Mac doesn't have '&' keyboard shortcuts.
// Other platforms ignore the prefix char when comparing strings.
menuName.remove( QChar( '&' ) );
#endif
QAction *before = mActionPluginSeparator2; // python separator or end of list
if ( !mActionPluginSeparator1 )
{
Expand Down

0 comments on commit 3432a15

Please sign in to comment.