Skip to content
Permalink
Browse files

Fix #7993, fields are listed twice in labeling data defined menu

  • Loading branch information
dakcarto committed Jun 3, 2013
1 parent 96ae127 commit 0192e37fe3e861d5f408071dfff224bc339d845a
Showing with 3 additions and 3 deletions.
  1. +3 −3 src/gui/qgsdatadefinedbutton.cpp
@@ -137,9 +137,6 @@ void QgsDataDefinedButton::init( const QgsVectorLayer* vl,
{
mDataTypesString = ts.join( ", " );
mActionDataTypes = new QAction( tr( "Field type: " ) + mDataTypesString, this );

// list fields and types in submenu, since there may be many
mActionDataTypes->setMenu( mFieldsMenu );
}

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

// list fields and types in submenu, since there may be many
mActionDataTypes->setMenu( mFieldsMenu );

mDefineMenu->addSeparator();
}

0 comments on commit 0192e37

Please sign in to comment.
You can’t perform that action at this time.