We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 362ea7f commit 3a7d217Copy full SHA for 3a7d217
src/app/qgsconfigureshortcutsdialog.cpp
@@ -78,6 +78,12 @@ void QgsConfigureShortcutsDialog::saveShortcuts()
78
if ( fileName.isEmpty() )
79
return;
80
81
+ // ensure the user never omitted the extension from the file name
82
+ if ( !fileName.toLower().endsWith( ".xml" ) )
83
+ {
84
+ fileName += ".xml";
85
+ }
86
+
87
QFile file( fileName );
88
if ( !file.open( QIODevice::WriteOnly | QIODevice::Text ) )
89
{
0 commit comments