Mercurial > hg > octave-lojdl
changeset 13442:6deb6df16986
Fixed bug: Editor was complainig that no filename was given when aborting.
author | Jacob Dawid <jacob.dawid@googlemail.com> |
---|---|
date | Thu, 14 Apr 2011 12:41:57 +0200 |
parents | 466638363643 |
children | 1146953baa37 |
files | gui//src/FileEditorMdiSubWindow.cpp |
diffstat | 1 files changed, 3 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/gui//src/FileEditorMdiSubWindow.cpp +++ b/gui//src/FileEditorMdiSubWindow.cpp @@ -60,6 +60,9 @@ void FileEditorMdiSubWindow::saveFile() { QString saveFileName = QFileDialog::getSaveFileName(this, "Save File", m_fileName); + if(saveFileName.isEmpty()) + return; + QFile file(saveFileName); file.open(QFile::WriteOnly);