Skip to content

Commit 068da60

Browse files
committed
Don't append "Missing group" to non-standard expression groups, so that python plugins which provide expressions can create their own groups
1 parent 55c76ca commit 068da60

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/core/qgsexpression.cpp

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2380,5 +2380,8 @@ QString QgsExpression::group( QString name )
23802380
gGroups.insert( "Record", QObject::tr( "Record" ) );
23812381
}
23822382

2383-
return gGroups.value( name, QObject::tr( "Missing group %1" ).arg( name ) );
2383+
//return the translated name for this group. If group does not
2384+
//have a translated name in the gGroups hash, return the name
2385+
//unchanged
2386+
return gGroups.value( name, name );
23842387
}

0 commit comments

Comments
 (0)