Skip to content

Commit 7865a1f

Browse files
author
telwertowski
committed
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/qgis@9272 c8812cc2-4d05-0410-92ff-de0c093fc19c
1 parent 88200f0 commit 7865a1f

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/app/qgisapp.cpp

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4730,6 +4730,11 @@ QMenu* QgisApp::getPluginMenu( QString menuName )
47304730
* present, there is no python separator and the plugin list is at the bottom
47314731
* of the menu.
47324732
*/
4733+
#ifdef Q_WS_MAC
4734+
// Mac doesn't have '&' keyboard shortcuts.
4735+
// Other platforms ignore the prefix char when comparing strings.
4736+
menuName.remove( QChar( '&' ) );
4737+
#endif
47334738
QAction *before = mActionPluginSeparator2; // python separator or end of list
47344739
if ( !mActionPluginSeparator1 )
47354740
{

0 commit comments

Comments
 (0)