Skip to content

Commit 5e5e50a

Browse files
committed
give objectName to plugin menus to allow customization
1 parent b184d0e commit 5e5e50a

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/app/qgisapp.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7430,6 +7430,7 @@ QMenu* QgisApp::getPluginMenu( QString menuName )
74307430
}
74317431
// It doesn't exist, so create
74327432
QMenu *menu = new QMenu( menuName, this );
7433+
menu->setObjectName( menuName.normalized(QString::NormalizationForm_KD).remove(QRegExp("[^a-zA-Z]")) );
74337434
// Where to put it? - we worked that out above...
74347435
mPluginMenu->insertMenu( before, menu );
74357436

0 commit comments

Comments
 (0)