We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
qgis
Learn more about funding links in repositories.
Report abuse
There was an error while loading. Please reload this page.
1 parent e7b19a5 commit 1edcf3cCopy full SHA for 1edcf3c
src/gui/qgsrasterlayersaveasdialog.cpp
@@ -203,6 +203,11 @@ void QgsRasterLayerSaveAsDialog::on_mBrowseButton_clicked()
203
204
if ( !fileName.isEmpty() )
205
{
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
+ }
211
mSaveAsLineEdit->setText( fileName );
212
}
213
0 commit comments