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
This commit is contained in:
telwertowski 2008-09-06 19:44:32 +00:00
parent 00d8a8cf46
commit 3432a15221

View File

@ -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 )
{