Skip to content
Permalink
Browse files

add extension when saving customization file (fix #12887)

  • Loading branch information
alexbruy committed Jan 18, 2016
1 parent 62a571d commit aa417a10cbafbd885d30df18c54e7f34479ef979
Showing with 8 additions and 0 deletions.
  1. +8 −0 src/app/qgscustomization.cpp
@@ -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() );

0 comments on commit aa417a1

Please sign in to comment.
You can’t perform that action at this time.