Skip to content
Permalink
Browse files

Add .gpkg file filter to the file selection dialog

  • Loading branch information
elpaso committed Mar 10, 2019
1 parent 06678eb commit 2537296e3f8bc317c055633533e73ffea7691cfe
Showing with 2 additions and 0 deletions.
  1. +2 −0 src/providers/ogr/qgsgeopackageprojectstoragedialog.cpp
@@ -18,6 +18,7 @@
#include "qgsprojectstorage.h"
#include "qgsprojectstorageregistry.h"
#include "qgsogrdbconnection.h"
#include "qgsvectorfilewriter.h"
#include "qgis.h"

#include <QMenu>
@@ -41,6 +42,7 @@ QgsGeoPackageProjectStorageDialog::QgsGeoPackageProjectStorageDialog( bool savin
btnManageProjects->setMenu( menuManageProjects );
buttonBox->addButton( btnManageProjects, QDialogButtonBox::ActionRole );
mFileWidget->lineEdit()->hide();
mFileWidget->setFilter( QgsVectorFileWriter::filterForDriver( QStringLiteral( "GPKG" ) ) );

connect( mFileWidget, &QgsFileWidget::fileChanged, [ = ]( const QString & path )
{

0 comments on commit 2537296

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