Mercurial > octave-nkf
diff libgui/src/m-editor/file-editor.cc @ 18472: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 | 09ef57c61b3b |
children | ca65b05b9a8a 17baa684892c |
line wrap: on
line diff
--- a/libgui/src/m-editor/file-editor.cc Sat Feb 15 20:16:27 2014 -0800 +++ b/libgui/src/m-editor/file-editor.cc Sun Feb 16 18:06:43 2014 +0100 @@ -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 ();