Skip to content

Commit 2d0229e

Browse files
committedOct 14, 2012
fix #6502
1 parent 813f1bd commit 2d0229e

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed
 

‎src/app/qgsvectorlayerproperties.cpp

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -126,6 +126,8 @@ QgsVectorLayerProperties::QgsVectorLayerProperties(
126126
}
127127
else
128128
{
129+
labelingDialog = 0;
130+
labelDialog = 0;
129131
tabWidget->setTabEnabled( 1, false ); // hide labeling item
130132
tabWidget->setTabEnabled( 2, false ); // hide labeling (deprecated) item
131133
}
@@ -705,7 +707,8 @@ QgsVectorLayer::EditType QgsVectorLayerProperties::editTypeFromButtonText( QStri
705707

706708
void QgsVectorLayerProperties::apply()
707709
{
708-
labelingDialog->apply();
710+
if ( labelingDialog )
711+
labelingDialog->apply();
709712

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

750753
actionDialog->apply();
751754

752-
labelDialog->apply();
755+
if ( labelDialog )
756+
labelDialog->apply();
753757
layer->enableLabels( labelCheckBox->isChecked() );
754758
layer->setLayerName( displayName() );
755759

0 commit comments

Comments
 (0)