Skip to content
Permalink
Browse files

Configure shortcuts dialog - make sure output file name has .xml exte…

…nsion.

Contributed by Alexander Bruy.


git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@12348 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
wonder
wonder committed Dec 7, 2009
1 parent 362ea7f commit 3a7d217fc56876908e7b90aef7991feb402a5b64
Showing with 6 additions and 0 deletions.
  1. +6 −0 src/app/qgsconfigureshortcutsdialog.cpp
@@ -78,6 +78,12 @@ void QgsConfigureShortcutsDialog::saveShortcuts()
if ( fileName.isEmpty() )
return;

// ensure the user never omitted the extension from the file name
if ( !fileName.toLower().endsWith( ".xml" ) )
{
fileName += ".xml";
}

QFile file( fileName );
if ( !file.open( QIODevice::WriteOnly | QIODevice::Text ) )
{

0 comments on commit 3a7d217

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