Skip to content
Permalink
Browse files

Vector layer properties GUI: tweak message to be "Save in database (G…

…eoPackage)" for GeoPackage
  • Loading branch information
rouault committed Oct 27, 2016
1 parent 01f3c9a commit dcad93ac045c8867d3aeceb3d1f562eb8bd2c5db
Showing with 8 additions and 1 deletion.
  1. +8 −1 src/app/qgsvectorlayerproperties.cpp
@@ -172,7 +172,14 @@ QgsVectorLayerProperties::QgsVectorLayerProperties(
this, SLOT( loadStyleMenuTriggered( QAction * ) ) );

//for saving
mSaveAsMenu->addAction( tr( "Save in database (%1)" ).arg( mLayer->providerType() ) );
QString providerName = mLayer->providerType();
if ( providerName == "ogr" )
{
providerName = mLayer->dataProvider()->storageType();
if ( providerName == "GPKG" )
providerName = "GeoPackage";
}
mSaveAsMenu->addAction( tr( "Save in database (%1)" ).arg( providerName ) );
}

QObject::connect( mSaveAsMenu, SIGNAL( triggered( QAction * ) ),

0 comments on commit dcad93a

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