Skip to content

Commit

Permalink
Add .gpkg file filter to the file selection dialog
Browse files Browse the repository at this point in the history
  • Loading branch information
elpaso committed Mar 10, 2019
1 parent 06678eb commit 2537296
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/providers/ogr/qgsgeopackageprojectstoragedialog.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
#include "qgsprojectstorage.h"
#include "qgsprojectstorageregistry.h"
#include "qgsogrdbconnection.h"
#include "qgsvectorfilewriter.h"
#include "qgis.h"

#include <QMenu>
Expand All @@ -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 )
{
Expand Down

0 comments on commit 2537296

Please sign in to comment.