Mercurial > hg > octave-nkf
changeset 18540:83cc56cc7cb7 stable
fix restoring non-existing file from previous session (bug #41280)
* file-editor.cc (request_open_file): dialog asking whether to create
non-existing file has no parent for correct handling at startup
author | Torsten <ttl@justmail.de> |
---|---|
date | Sun, 16 Feb 2014 18:06:43 +0100 |
parents | 343718b2eee4 |
children | df8e5e3a0f67 |
files | libgui/src/m-editor/file-editor.cc |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/libgui/src/m-editor/file-editor.cc +++ b/libgui/src/m-editor/file-editor.cc @@ -369,7 +369,7 @@ tr ("File\n%1\ndoes not exist. " "Do you want to create it?").arg (openFileName), QMessageBox::Yes - | QMessageBox::No, this); + | QMessageBox::No, 0); msgBox->setAttribute (Qt::WA_DeleteOnClose); answer = msgBox->exec ();