# HG changeset patch # User John Donoghue # Date 1368968728 14400 # Node ID c6c4847aaf67228f1437189c5b16c9b7ef16b84d # Parent 5c5c46a81ad51109ce32da2bc24027c4463bbb61 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. diff --git a/libgui/src/m-editor/file-editor.cc b/libgui/src/m-editor/file-editor.cc --- 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);