File tree Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -126,6 +126,8 @@ QgsVectorLayerProperties::QgsVectorLayerProperties(
126
126
}
127
127
else
128
128
{
129
+ labelingDialog = 0 ;
130
+ labelDialog = 0 ;
129
131
tabWidget->setTabEnabled ( 1 , false ); // hide labeling item
130
132
tabWidget->setTabEnabled ( 2 , false ); // hide labeling (deprecated) item
131
133
}
@@ -705,7 +707,8 @@ QgsVectorLayer::EditType QgsVectorLayerProperties::editTypeFromButtonText( QStri
705
707
706
708
void QgsVectorLayerProperties::apply ()
707
709
{
708
- labelingDialog->apply ();
710
+ if ( labelingDialog )
711
+ labelingDialog->apply ();
709
712
710
713
//
711
714
// Set up sql subset query if applicable
@@ -749,7 +752,8 @@ void QgsVectorLayerProperties::apply()
749
752
750
753
actionDialog->apply ();
751
754
752
- labelDialog->apply ();
755
+ if ( labelDialog )
756
+ labelDialog->apply ();
753
757
layer->enableLabels ( labelCheckBox->isChecked () );
754
758
layer->setLayerName ( displayName () );
755
759
You can’t perform that action at this time.
0 commit comments