Skip to content
Permalink
Browse files
Consider also files without extensions in the file dialog filters
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@13459 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
mhugent committed May 10, 2010
1 parent 17bcb9f commit 495286a4fe72dab1ead6b1802d37205429cd504d
@@ -73,7 +73,7 @@ void QgsConfigureShortcutsDialog::populateActions()

void QgsConfigureShortcutsDialog::saveShortcuts()
{
QString fileName = QFileDialog::getSaveFileName( this, tr( "Save shortcuts" ), ".", tr( "XML file (*.xml);; All files (*.*)" ) );
QString fileName = QFileDialog::getSaveFileName( this, tr( "Save shortcuts" ), ".", tr( "XML file (*.xml);; All files (*)" ) );

if ( fileName.isEmpty() )
return;
@@ -125,7 +125,7 @@ void QgsConfigureShortcutsDialog::saveShortcuts()

void QgsConfigureShortcutsDialog::loadShortcuts()
{
QString fileName = QFileDialog::getOpenFileName( this, tr( "Load shortcuts" ), ".", tr( "XML file (*.xml);; All files (*.*)" ) );
QString fileName = QFileDialog::getOpenFileName( this, tr( "Load shortcuts" ), ".", tr( "XML file (*.xml);; All files (*)" ) );

if ( fileName.isEmpty() )
{
@@ -300,7 +300,7 @@ void QgsSpatiaLiteSourceSelect::on_btnNew_clicked()

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

if ( myFile.isEmpty() )
return;
@@ -161,7 +161,7 @@ void QgsSpit::addFile()
QgsEncodingFileDialog dlg( this,
tr( "Add Shapefiles" ),
settings.value( "/Plugin-Spit/last_directory" ).toString(),
tr( "Shapefiles (*.shp);;All files (*.*)" ),
tr( "Shapefiles (*.shp);;All files (*)" ),
settings.value( "/Plugin-Spit/last_encoding" ).toString() );
dlg.setFileMode( QFileDialog::ExistingFiles );

@@ -1373,7 +1373,7 @@ QString createFilters( QString type )

// can't forget the default case

myFileFilters += "All files (*.*)";
myFileFilters += "All files (*)";
}

if ( type == "file" )

0 comments on commit 495286a

Please sign in to comment.