Skip to content

Commit aa417a1

Browse files
committedJan 18, 2016
add extension when saving customization file (fix #12887)
1 parent 62a571d commit aa417a1

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed
 

‎src/app/qgscustomization.cpp

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -227,7 +227,15 @@ void QgsCustomizationDialog::on_actionSave_triggered( bool checked )
227227
lastDir, tr( "Customization files (*.ini)" ) );
228228

229229
if ( fileName.isEmpty() )
230+
{
230231
return;
232+
}
233+
234+
if ( !fileName.endsWith( ".ini", Qt::CaseInsensitive ) )
235+
{
236+
fileName += ".ini";
237+
}
238+
231239
QFileInfo fileInfo( fileName );
232240
mySettings.setValue( mLastDirSettingsName, fileInfo.absoluteDir().absolutePath() );
233241

0 commit comments

Comments
 (0)
Please sign in to comment.