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/qgis@13459 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
mhugent committed May 10, 2010
1 parent 17bcb9f commit 495286a
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
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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() )
{
Expand Down
2 changes: 1 addition & 1 deletion src/app/qgsspatialitesourceselect.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
2 changes: 1 addition & 1 deletion src/plugins/spit/qgsspit.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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 );

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

// can't forget the default case

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

if ( type == "file" )
Expand Down

0 comments on commit 495286a

Please sign in to comment.