File tree 1 file changed +18
-4
lines changed
1 file changed +18
-4
lines changed Original file line number Diff line number Diff line change @@ -3134,7 +3134,7 @@ void QgisApp::newSpatialiteLayer()
3134
3134
QString baseSQL;
3135
3135
if ( spatialiteDialog.includePrimaryKey () )
3136
3136
{
3137
- baseSQL = " create table %1(pkuid integer primary key autoincrement, " ;
3137
+ baseSQL = " create table %1(pkuid integer primary key autoincrement, " ;
3138
3138
}
3139
3139
else
3140
3140
{
@@ -3911,12 +3911,26 @@ void QgisApp::attributeTable()
3911
3911
3912
3912
void QgisApp::saveAsVectorFile ()
3913
3913
{
3914
- mMapLegend ->currentLegendLayer ()->saveAsVectorFile ();
3914
+ if ( mMapLegend )
3915
+ {
3916
+ QgsLegendLayer* currentLegendLayer = mMapLegend ->currentLegendLayer ();
3917
+ if ( currentLegendLayer )
3918
+ {
3919
+ currentLegendLayer->saveAsVectorFile ();
3920
+ }
3921
+ }
3915
3922
}
3916
3923
3917
3924
void QgisApp::saveSelectionAsVectorFile ()
3918
3925
{
3919
- mMapLegend ->currentLegendLayer ()->saveSelectionAsVectorFile ();
3926
+ if ( mMapLegend )
3927
+ {
3928
+ QgsLegendLayer* currentLegendLayer = mMapLegend ->currentLegendLayer ();
3929
+ if ( currentLegendLayer )
3930
+ {
3931
+ currentLegendLayer->saveSelectionAsVectorFile ();
3932
+ }
3933
+ }
3920
3934
}
3921
3935
3922
3936
void QgisApp::layerProperties ()
@@ -6720,7 +6734,7 @@ void QgisApp::namUpdate()
6720
6734
}
6721
6735
6722
6736
#if QT_VERSION >= 0x40500
6723
- if ( !mProxyFactory )
6737
+ if ( !mProxyFactory )
6724
6738
{
6725
6739
mProxyFactory = new QgsNetworkProxyFactory ();
6726
6740
mNAM ->setProxyFactory ( mProxyFactory );
You can’t perform that action at this time.
0 commit comments