File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -108,17 +108,17 @@ void QgsDualView::columnBoxInit()
108
108
QString displayExpression = mLayerCache ->layer ()->displayExpression ();
109
109
110
110
// if no display expression is saved: use display field instead
111
- if ( displayExpression == " " )
111
+ if ( displayExpression. isEmpty () )
112
112
{
113
- if ( mLayerCache ->layer ()->displayField () != " " )
113
+ if ( ! mLayerCache ->layer ()->displayField (). isEmpty () )
114
114
{
115
115
defaultField = mLayerCache ->layer ()->displayField ();
116
116
displayExpression = QString ( " COALESCE(\" %1\" , '<NULL>')" ).arg ( defaultField );
117
117
}
118
118
}
119
119
120
- // if neither diaplay expression nor display field is saved...
121
- if ( displayExpression == " " )
120
+ // if neither display expression nor display field is saved...
121
+ if ( displayExpression. isEmpty () )
122
122
{
123
123
QgsAttributeList pkAttrs = mLayerCache ->layer ()->pkAttributeList ();
124
124
@@ -169,7 +169,7 @@ void QgsDualView::columnBoxInit()
169
169
170
170
if ( mLayerCache ->layer ()->editFormConfig ()->widgetType ( fieldIndex ) != " Hidden" )
171
171
{
172
- QIcon icon = QgsApplication::getThemeIcon ( " /mActionNewAttribute.png " );
172
+ QIcon icon = mLayerCache -> layer ()-> fields (). iconForField ( fieldIndex );
173
173
QString text = field.name ();
174
174
175
175
// Generate action for the preview popup button of the feature list
You can’t perform that action at this time.
0 commit comments