Skip to content
Permalink
Browse files

Make recent expression labels single line

  • Loading branch information
uclaros authored and nyalldawson committed Feb 14, 2021
1 parent 93239b1 commit a32851ca3be411b4228b2c207312092b438cd73b
Showing with 3 additions and 1 deletion.
  1. +3 −1 src/gui/qgsexpressiontreeview.cpp
@@ -476,7 +476,9 @@ void QgsExpressionTreeView::loadRecent( const QString &collection )
for ( const QString &expression : expressions )
{
QString help = formatRecentExpressionHelp( expression, expression );
registerItem( name, expression, expression, help, QgsExpressionItem::ExpressionNode, false, i );
QString label = expression;
label.replace( '\n', ' ' );
registerItem( name, label, expression, help, QgsExpressionItem::ExpressionNode, false, i );
i++;
}
}

0 comments on commit a32851c

Please sign in to comment.