Skip to content
Permalink
Browse files

fix #6502

  • Loading branch information
jef-n committed Oct 14, 2012
1 parent 813f1bd commit 2d0229e0969862fd92307225a00ff2d865d76eff
Showing with 6 additions and 2 deletions.
  1. +6 −2 src/app/qgsvectorlayerproperties.cpp
@@ -126,6 +126,8 @@ QgsVectorLayerProperties::QgsVectorLayerProperties(
}
else
{
labelingDialog = 0;
labelDialog = 0;
tabWidget->setTabEnabled( 1, false ); // hide labeling item
tabWidget->setTabEnabled( 2, false ); // hide labeling (deprecated) item
}
@@ -705,7 +707,8 @@ QgsVectorLayer::EditType QgsVectorLayerProperties::editTypeFromButtonText( QStri

void QgsVectorLayerProperties::apply()
{
labelingDialog->apply();
if ( labelingDialog )
labelingDialog->apply();

//
// Set up sql subset query if applicable
@@ -749,7 +752,8 @@ void QgsVectorLayerProperties::apply()

actionDialog->apply();

labelDialog->apply();
if ( labelDialog )
labelDialog->apply();
layer->enableLabels( labelCheckBox->isChecked() );
layer->setLayerName( displayName() );

0 comments on commit 2d0229e

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