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/qgis@9272 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
telwertowski committed Sep 6, 2008
1 parent 88200f0 commit 7865a1f
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/app/qgisapp.cpp
Original file line number Diff line number Diff line change
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 7865a1f

Please sign in to comment.