We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9ce02ce commit 779fe1aCopy full SHA for 779fe1a
src/app/qgisapp.cpp
@@ -6446,7 +6446,8 @@ void QgisApp::refreshFeatureActions()
6446
QList<QgsAction> actions = vlayer->actions()->actions( QStringLiteral( "Canvas" ) );
6447
Q_FOREACH ( const QgsAction &action, actions )
6448
{
6449
- QAction *qAction = new QAction( action.icon(), action.shortTitle(), mFeatureActionMenu );
+ QString actionTitle = !action.shortTitle().isEmpty() ? action.shortTitle() : action.icon().isNull() ? action.name() : QStringLiteral( "" );
6450
+ QAction *qAction = new QAction( action.icon(), actionTitle, mFeatureActionMenu );
6451
qAction->setData( QVariant::fromValue<QgsAction>( action ) );
6452
mFeatureActionMenu->addAction( qAction );
6453
0 commit comments