# HG changeset patch # User Jacob Dawid # Date 1314053989 -7200 # Node ID b7d870e9b886fad4e86406bcb89094e07112404f # Parent 04cd5480855c68ab94859dc6f8919c3ff8a4acb3 Added patch from aAndriy with adding file extension when not present. diff --git a/gui/src/FileEditorMdiSubWindow.cpp b/gui/src/FileEditorMdiSubWindow.cpp --- a/gui/src/FileEditorMdiSubWindow.cpp +++ b/gui/src/FileEditorMdiSubWindow.cpp @@ -194,6 +194,8 @@ saveFileName = QFileDialog::getSaveFileName (this, "Save File", fileName,SAVE_FILE_FILTER); if (saveFileName.isEmpty ()) return; + if(!saveFileName.endsWith(".m")) + saveFileName.append(".m"); } else {