mirror of
https://github.com/qgis/QGIS.git
synced 2025-10-06 00:07:29 -04:00
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:
parent
00d8a8cf46
commit
3432a15221
@ -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 )
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user