Mercurial > hg > octave-lyh
changeset 13642:b7d870e9b886
Added patch from aAndriy with adding file extension when not present.
author | Jacob Dawid <jacob.dawid@googlemail.com> |
---|---|
date | Tue, 23 Aug 2011 00:59:49 +0200 |
parents | 04cd5480855c |
children | 0281f7082e4f |
files | gui/src/FileEditorMdiSubWindow.cpp |
diffstat | 1 files changed, 2 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- 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 {