changeset 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 5c5c46a81ad5
children f4d18d3f7fd7
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	Sat May 18 19:11:18 2013 -0400
+++ b/libgui/src/m-editor/file-editor.cc	Sun May 19 09:05:28 2013 -0400
@@ -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);