Skip to content

Commit

Permalink
Consider also files without extensions in the file dialog filters
Browse files Browse the repository at this point in the history
git-svn-id: http://svn.osgeo.org/qgis/trunk@13459 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
mhugent committed May 10, 2010
1 parent 351ad05 commit 2d9a2b2
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions src/app/qgsconfigureshortcutsdialog.cpp
Expand Up @@ -73,7 +73,7 @@ void QgsConfigureShortcutsDialog::populateActions()


void QgsConfigureShortcutsDialog::saveShortcuts() 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() ) if ( fileName.isEmpty() )
return; return;
Expand Down Expand Up @@ -125,7 +125,7 @@ void QgsConfigureShortcutsDialog::saveShortcuts()


void QgsConfigureShortcutsDialog::loadShortcuts() 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() ) if ( fileName.isEmpty() )
{ {
Expand Down
2 changes: 1 addition & 1 deletion src/app/qgsspatialitesourceselect.cpp
Expand Up @@ -300,7 +300,7 @@ void QgsSpatiaLiteSourceSelect::on_btnNew_clicked()


QString myFile = QFileDialog::getOpenFileName( this, QString myFile = QFileDialog::getOpenFileName( this,
tr( "Choose a SpatiaLite/SQLite DB to open" ), 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() ) if ( myFile.isEmpty() )
return; return;
Expand Down
2 changes: 1 addition & 1 deletion src/plugins/spit/qgsspit.cpp
Expand Up @@ -161,7 +161,7 @@ void QgsSpit::addFile()
QgsEncodingFileDialog dlg( this, QgsEncodingFileDialog dlg( this,
tr( "Add Shapefiles" ), tr( "Add Shapefiles" ),
settings.value( "/Plugin-Spit/last_directory" ).toString(), settings.value( "/Plugin-Spit/last_directory" ).toString(),
tr( "Shapefiles (*.shp);;All files (*.*)" ), tr( "Shapefiles (*.shp);;All files (*)" ),
settings.value( "/Plugin-Spit/last_encoding" ).toString() ); settings.value( "/Plugin-Spit/last_encoding" ).toString() );
dlg.setFileMode( QFileDialog::ExistingFiles ); dlg.setFileMode( QFileDialog::ExistingFiles );


Expand Down
2 changes: 1 addition & 1 deletion src/providers/ogr/qgsogrprovider.cpp
Expand Up @@ -1373,7 +1373,7 @@ QString createFilters( QString type )


// can't forget the default case // can't forget the default case


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


if ( type == "file" ) if ( type == "file" )
Expand Down

0 comments on commit 2d9a2b2

Please sign in to comment.