[QGIS Commit] r9272 - trunk/qgis/src/app
svn_qgis at osgeo.org
svn_qgis at osgeo.org
Sat Sep 6 15:44:33 EDT 2008
Author: telwertowski
Date: 2008-09-06 15:44:32 -0400 (Sat, 06 Sep 2008)
New Revision: 9272
Modified:
trunk/qgis/src/app/qgisapp.cpp
Log:
Ignore '&' when comparing (sorting) plugin menu strings on Mac. Other platforms automatically ignore it but Mac doesn't have '&' shortcuts.
Modified: trunk/qgis/src/app/qgisapp.cpp
===================================================================
--- trunk/qgis/src/app/qgisapp.cpp 2008-09-06 18:12:57 UTC (rev 9271)
+++ trunk/qgis/src/app/qgisapp.cpp 2008-09-06 19:44:32 UTC (rev 9272)
@@ -4730,6 +4730,11 @@
* 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 )
{
More information about the QGIS-commit
mailing list