Mercurial > hg > octave-nkf
diff libgui/src/m-editor/file-editor.cc @ 16686:c6c4847aaf67
Make open file "file not found" message box open in front of editor window.
libgui/src/m-editor/file-editor.cc
(file_editor::request_open_file): set parent of QMessageDialogBox from 0 to the file_editor.
author | John Donoghue <john.donoghue@ieee.org> |
---|---|
date | Sun, 19 May 2013 09:05:28 -0400 |
parents | 3c2e457eeb72 |
children | 01d523d5f796 |
line wrap: on
line diff
--- a/libgui/src/m-editor/file-editor.cc +++ b/libgui/src/m-editor/file-editor.cc @@ -306,7 +306,7 @@ tr ("Octave Editor"), tr ("Could not open file %1 for read:\n%2."). arg (openFileName).arg (result), - QMessageBox::Ok, 0); + QMessageBox::Ok, this); msgBox->setWindowModality (Qt::NonModal); msgBox->setAttribute (Qt::WA_DeleteOnClose);