File tree Expand file tree Collapse file tree 4 files changed +5
-7
lines changed Expand file tree Collapse file tree 4 files changed +5
-7
lines changed Original file line number Diff line number Diff line change @@ -1545,9 +1545,7 @@ void QgsVectorLayerProperties::updateAuxiliaryStoragePage( bool reset )
1545
1545
mAuxiliaryLayerActionClear ->setEnabled ( false );
1546
1546
mAuxiliaryLayerActionDelete ->setEnabled ( false );
1547
1547
mAuxiliaryLayerActionExport ->setEnabled ( false );
1548
-
1549
- if ( mLayer ->isSpatial () )
1550
- mAuxiliaryLayerActionNew ->setEnabled ( true );
1548
+ mAuxiliaryLayerActionNew ->setEnabled ( true );
1551
1549
1552
1550
mAuxiliaryStorageFieldsTree ->clear ();
1553
1551
mAuxiliaryStorageKeyLineEdit ->setText ( QString () );
@@ -1565,7 +1563,7 @@ void QgsVectorLayerProperties::onAuxiliaryLayerNew()
1565
1563
{
1566
1564
QgsAuxiliaryLayer *alayer = mLayer ->auxiliaryLayer ();
1567
1565
1568
- if ( alayer || ! mLayer -> isSpatial () )
1566
+ if ( alayer )
1569
1567
return ;
1570
1568
1571
1569
QgsNewAuxiliaryLayerDialog dlg ( mLayer , this );
Original file line number Diff line number Diff line change @@ -480,7 +480,7 @@ QgsAuxiliaryLayer *QgsAuxiliaryStorage::createAuxiliaryLayer( const QgsField &fi
480
480
{
481
481
QgsAuxiliaryLayer *alayer = nullptr ;
482
482
483
- if ( mValid && layer && layer-> isSpatial () )
483
+ if ( mValid && layer )
484
484
{
485
485
const QString table ( layer->id () );
486
486
sqlite3 *handler = openDB ( currentFileName () );
Original file line number Diff line number Diff line change @@ -2252,7 +2252,7 @@ QList<QgsMapLayer *> QgsProject::addMapLayers(
2252
2252
continue ;
2253
2253
2254
2254
QgsVectorLayer *vl = qobject_cast<QgsVectorLayer *>( mlayer );
2255
- if ( vl && vl-> isSpatial () )
2255
+ if ( vl )
2256
2256
{
2257
2257
vl->loadAuxiliaryLayer ( *mAuxiliaryStorage .get () );
2258
2258
}
Original file line number Diff line number Diff line change @@ -4273,7 +4273,7 @@ bool QgsVectorLayer::loadAuxiliaryLayer( const QgsAuxiliaryStorage &storage )
4273
4273
{
4274
4274
bool rc = false ;
4275
4275
4276
- if ( isSpatial () && storage.isValid () && !mAuxiliaryLayerKey .isEmpty () )
4276
+ if ( storage.isValid () && !mAuxiliaryLayerKey .isEmpty () )
4277
4277
{
4278
4278
QgsAuxiliaryLayer *alayer = nullptr ;
4279
4279
You can’t perform that action at this time.
0 commit comments