Skip to content
Permalink
Browse files

Editor widget configuration: Only show one config dialog at a time

  • Loading branch information
m-kuhn committed Oct 16, 2013
1 parent 77dce0f commit 278c8714539c97ecd521ecf8dcfd0287d2c80103
Showing with 6 additions and 6 deletions.
  1. +6 −6 src/app/qgsattributetypedialog.cpp
@@ -696,19 +696,19 @@ void QgsAttributeTypeDialog::setStackPage( int index )
// Set to (empty) editor widget page
stackedWidget->setCurrentIndex( 16 );

// hide any other config widget
Q_FOREACH( QgsEditorConfigWidget* wdg, mEditorConfigWidgets.values() )
{
wdg->hide();
}

if ( mEditorConfigWidgets.contains( factoryId ) )
{
mEditorConfigWidgets[factoryId]->show();
}
else
{
QgsEditorConfigWidget* cfgWdg = QgsEditorWidgetRegistry::instance()->createConfigWidget( factoryId, mLayer, mIndex, this );
QgsEditorConfigWidget* oldWdg = pageEditorWidget->findChild<QgsEditorConfigWidget*>();

if ( oldWdg )
{
oldWdg->hide();
}

if ( cfgWdg )
{

0 comments on commit 278c871

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