Skip to content
Permalink
Browse files

add .db to spatialite extensions (fixes #4919)

  • Loading branch information
jef-n committed Jan 30, 2012
1 parent 063c7e6 commit cbef41c07c1aa8c5b3ac1063702629444177ca00
@@ -111,7 +111,7 @@ void QgsNewSpatialiteLayerDialog::on_toolButtonNewDatabase_clicked()
{
QString fileName = QFileDialog::getSaveFileName( this, tr( "New SpatiaLite Database File" ),
".",
tr( "SpatiaLite (*.sqlite *.db )" ) );
tr( "SpatiaLite" ) + " (*.sqlite *.db)" );

if ( fileName.isEmpty() )
return;
@@ -1698,9 +1698,8 @@ QString createFilters( QString type )
}
else if ( driverName.startsWith( "SQLite" ) )
{
myFileFilters += createFileFilter_( QObject::tr( "SQLite" ),
"*.sqlite" );
myExtensions << "sqlite";
myFileFilters += createFileFilter_( QObject::tr( "SQLite" ), "*.sqlite *.db" );
myExtensions << "sqlite" << "db";
}
else if ( driverName.startsWith( "UK .NTF" ) )
{
@@ -293,7 +293,7 @@ void QgsSLRootItem::createDatabase()

QString filename = QFileDialog::getSaveFileName( 0, tr( "New SpatiaLite Database File" ),
lastUsedDir,
tr( "SpatiaLite (*.sqlite *.db )" ) );
tr( "SpatiaLite" ) + " (*.sqlite *.db)" );
if ( filename.isEmpty() )
return;

@@ -229,7 +229,7 @@ bool QgsSpatiaLiteSourceSelect::newConnection( QWidget* parent )

QString myFile = QFileDialog::getOpenFileName( parent,
tr( "Choose a SpatiaLite/SQLite DB to open" ),
lastUsedDir, QObject::tr( "SQLite DB (*.sqlite *.db);;All files (*)" ) );
lastUsedDir, tr( "SpatiaLite DB" ) + " (*.sqlite *.db);;" + tr( "All files" ) + " (*)" );

if ( myFile.isEmpty() )
return false;

0 comments on commit cbef41c

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