Mercurial > hg > octave-terminal
changeset 13525:2426dd43c593
Fixed crash on startup.
author | Jacob Dawid <jacob.dawid@googlemail.com> |
---|---|
date | Wed, 20 Jul 2011 22:44:02 +0200 |
parents | 103b7bebb38f |
children | 7b0a721d0ae8 |
files | gui/src/MainWindow.cpp |
diffstat | 1 files changed, 2 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- a/gui/src/MainWindow.cpp +++ b/gui/src/MainWindow.cpp @@ -61,8 +61,6 @@ FileEditorMdiSubWindow *subWindow = new FileEditorMdiSubWindow (m_centralMdiArea); subWindow->setAttribute (Qt::WA_DeleteOnClose); -// addSubWindow uncommented to avoid "QMdiArea::addSubWindow: window is already added" -// m_centralMdiArea->addSubWindow(subWindow); subWindow->loadFile (fileName); } } @@ -276,12 +274,12 @@ void MainWindow::establishOctaveLink () { + m_octaveTerminal->openTerminal (); + m_octaveMainThread = new OctaveMainThread (this); m_octaveMainThread->start (); m_octaveCallbackThread = new OctaveCallbackThread (this, this); m_octaveCallbackThread->start (); - - m_octaveTerminal->openTerminal (); reportStatusMessage (tr ("Established link to Octave.")); }