Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Fix #6099 - Save as... for raster: missing extension on Gnome3
(cherry-picked from 2125f6a)
  • Loading branch information
slarosa committed Jul 13, 2015
1 parent e7b19a5 commit 1edcf3c
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 1edcf3c

Please sign in to comment.