Mercurial > octave
diff gui/src/MainWindow.cpp @ 14669:7605e7136b50 gui
Discarded initFileEditor, instead put that in the constructor. Speedup for updating the symbol table by lowering complexity from n² to n. Fixed problem with hangup on quit.
* FileEditor: Removed initFileEditor, put that code into the constructor.
* WorkspaceModel: Simplified updating the symbol table.
* OctaveLink: Add quit_allowed = true to prevent hangup on quit.
author | Jacob Dawid <jacob.dawid@googlemail.com> |
---|---|
date | Tue, 22 May 2012 11:00:24 +0200 |
parents | c8453a013000 |
children | 7fbea449737d |
line wrap: on
line diff
--- a/gui/src/MainWindow.cpp Tue May 22 09:13:46 2012 +0200 +++ b/gui/src/MainWindow.cpp Tue May 22 11:00:24 2012 +0200 @@ -53,9 +53,8 @@ void MainWindow::newEditorWindow (QString fileName) { - FileEditor *fileEditor = new FileEditor (); + FileEditor *fileEditor = new FileEditor (m_terminalView, m_lexer, this); fileEditor->setAttribute (Qt::WA_DeleteOnClose); - fileEditor->initEditor(m_terminalView, m_lexer, this); // init necessary informations for editor if (fileName.isEmpty ()) fileEditor->newFile ();