Skip to content

Commit 0192e37

Browse files
committedJun 3, 2013
Fix #7993, fields are listed twice in labeling data defined menu
1 parent 96ae127 commit 0192e37

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed
 

‎src/gui/qgsdatadefinedbutton.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -137,9 +137,6 @@ void QgsDataDefinedButton::init( const QgsVectorLayer* vl,
137137
{
138138
mDataTypesString = ts.join( ", " );
139139
mActionDataTypes = new QAction( tr( "Field type: " ) + mDataTypesString, this );
140-
141-
// list fields and types in submenu, since there may be many
142-
mActionDataTypes->setMenu( mFieldsMenu );
143140
}
144141

145142
if ( mVectorLayer )
@@ -277,6 +274,9 @@ void QgsDataDefinedButton::aboutToShowMenu()
277274
act->setEnabled( false );
278275
}
279276

277+
// list fields and types in submenu, since there may be many
278+
mActionDataTypes->setMenu( mFieldsMenu );
279+
280280
mDefineMenu->addSeparator();
281281
}
282282

0 commit comments

Comments
 (0)
Please sign in to comment.