Navigation Menu

Skip to content

Commit

Permalink
add extension when saving customization file (fix #12887)
Browse files Browse the repository at this point in the history
  • Loading branch information
alexbruy committed Jan 18, 2016
1 parent 62a571d commit aa417a1
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/app/qgscustomization.cpp
Expand Up @@ -227,7 +227,15 @@ void QgsCustomizationDialog::on_actionSave_triggered( bool checked )
lastDir, tr( "Customization files (*.ini)" ) );

if ( fileName.isEmpty() )
{
return;
}

if ( !fileName.endsWith( ".ini", Qt::CaseInsensitive ) )
{
fileName += ".ini";
}

QFileInfo fileInfo( fileName );
mySettings.setValue( mLastDirSettingsName, fileInfo.absoluteDir().absolutePath() );

Expand Down

0 comments on commit aa417a1

Please sign in to comment.