From 3432a15221f1ede1dd343473cf6af4f45593b571 Mon Sep 17 00:00:00 2001 From: telwertowski Date: Sat, 6 Sep 2008 19:44:32 +0000 Subject: [PATCH] Ignore '&' when comparing (sorting) plugin menu strings on Mac. Other 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 --- src/app/qgisapp.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/app/qgisapp.cpp b/src/app/qgisapp.cpp index 4ac07518b7a..a5b1cff0557 100644 --- a/src/app/qgisapp.cpp +++ b/src/app/qgisapp.cpp @@ -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 ) {