Skip to content

Commit

Permalink
Fix #6099 - Save as... for raster: missing extension on Gnome3
Browse files Browse the repository at this point in the history
  • Loading branch information
slarosa committed Jun 19, 2015
1 parent 4542067 commit 2125f6a
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/gui/qgsrasterlayersaveasdialog.cpp
Expand Up @@ -203,6 +203,11 @@ void QgsRasterLayerSaveAsDialog::on_mBrowseButton_clicked()

if ( !fileName.isEmpty() )
{
// ensure the user never ommited the extension from the file name
if ( !fileName.toLower().endsWith( ".tif" ) && !fileName.toLower().endsWith( ".tiff" ) )
{
fileName += ".tif";
}
mSaveAsLineEdit->setText( fileName );
}
}
Expand Down

0 comments on commit 2125f6a

Please sign in to comment.