summaryrefslogtreecommitdiff
path: root/mainwin.cc
diff options
context:
space:
mode:
Diffstat (limited to 'mainwin.cc')
-rw-r--r--mainwin.cc6
1 files changed, 1 insertions, 5 deletions
diff --git a/mainwin.cc b/mainwin.cc
index d63990e..cf17c88 100644
--- a/mainwin.cc
+++ b/mainwin.cc
@@ -415,12 +415,8 @@ void MainWindow::compile(bool procevents)
delete highlighter;
highlighter = new Highlighter(editor->document());
- if (!root_module) {
- QTextCursor cursor = editor->textCursor();
- cursor.setPosition(parser_error_pos);
- editor->setTextCursor(cursor);
+ if (!root_module)
goto fail;
- }
PRINT("Compiling design (CSG Tree generation)...");
if (procevents)
contact: Jan Huwald // Impressum