Don't delete MainWindows on close. See #694

recursion-fix
Marius Kintel 2014-03-09 13:17:20 -04:00
parent 2cce1e71fa
commit 8d77775387
1 changed files with 3 additions and 1 deletions

View File

@ -162,7 +162,9 @@ MainWindow::MainWindow(const QString &filename)
: root_inst("group"), tempFile(NULL), progresswidget(NULL)
{
setupUi(this);
this->setAttribute(Qt::WA_DeleteOnClose);
// FIXME: We cannot do this since Context maintains a global stack which gets pushed/popped when
// mainwindows are created. To fix, we probably need a separate stack per window. kintel 20140309
// this->setAttribute(Qt::WA_DeleteOnClose);
if (!MainWindow::windows) MainWindow::windows = new QSet<MainWindow*>;
MainWindow::windows->insert(this);