Skip to content

Commit 1edcf3c

Browse files
committedJul 13, 2015
Fix #6099 - Save as... for raster: missing extension on Gnome3
(cherry-picked from 2125f6a)
1 parent e7b19a5 commit 1edcf3c

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed
 

‎src/gui/qgsrasterlayersaveasdialog.cpp

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -203,6 +203,11 @@ void QgsRasterLayerSaveAsDialog::on_mBrowseButton_clicked()
203203

204204
if ( !fileName.isEmpty() )
205205
{
206+
// ensure the user never ommited the extension from the file name
207+
if ( !fileName.toLower().endsWith( ".tif" ) && !fileName.toLower().endsWith( ".tiff" ) )
208+
{
209+
fileName += ".tif";
210+
}
206211
mSaveAsLineEdit->setText( fileName );
207212
}
208213
}

0 commit comments

Comments
 (0)
Please sign in to comment.