Skip to content

Commit

Permalink
Vector layer properties GUI: tweak message to be "Save in database (G…
Browse files Browse the repository at this point in the history
…eoPackage)" for GeoPackage
  • Loading branch information
rouault committed Oct 27, 2016
1 parent 2e63643 commit 9feb6c4
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion src/app/qgsvectorlayerproperties.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,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 * ) ),
Expand Down

0 comments on commit 9feb6c4

Please sign in to comment.