Set default extensions for most save files

In most of these cases, the open file dialog won't even display a file
without the proper extension, so this helps ensure the user doesn't
accidentally misplace their files. The one exception is *.rdc, which
could be found without the extension, but could not be opened.
This commit is contained in:
Cory Bloor
2017-10-08 19:18:27 -06:00
committed by Baldur Karlsson
parent 87a587cc98
commit 6f21bacd82
7 changed files with 13 additions and 10 deletions
+1 -1
View File
@@ -511,7 +511,7 @@ void PythonShell::on_openScript_clicked()
void PythonShell::on_saveScript_clicked()
{
QString filename = RDDialog::getSaveFileName(this, tr("Save Python Script"), QString(),
tr("Python scripts (*.py)"));
tr("Python scripts (*.py)"), lit("py"));
if(!filename.isEmpty())
{