comparison 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
comparison
equal deleted inserted replaced
18469:343718b2eee4 18472:83cc56cc7cb7
367 msgBox = new QMessageBox (QMessageBox::Question, 367 msgBox = new QMessageBox (QMessageBox::Question,
368 tr ("Octave Editor"), 368 tr ("Octave Editor"),
369 tr ("File\n%1\ndoes not exist. " 369 tr ("File\n%1\ndoes not exist. "
370 "Do you want to create it?").arg (openFileName), 370 "Do you want to create it?").arg (openFileName),
371 QMessageBox::Yes 371 QMessageBox::Yes
372 | QMessageBox::No, this); 372 | QMessageBox::No, 0);
373 373
374 msgBox->setAttribute (Qt::WA_DeleteOnClose); 374 msgBox->setAttribute (Qt::WA_DeleteOnClose);
375 answer = msgBox->exec (); 375 answer = msgBox->exec ();
376 } 376 }
377 377