summaryrefslogtreecommitdiff
path: root/src/mainwin.cc
diff options
context:
space:
mode:
authorMarius Kintel <marius@kintel.net>2012-02-19 10:40:33 (GMT)
committerMarius Kintel <marius@kintel.net>2012-02-19 10:40:33 (GMT)
commit03bbd55c9377823c67ca8ea8027b0078d6d464ba (patch)
tree934196c0693b4e90a3a6e25dc9aff82e7bea6590 /src/mainwin.cc
parentbddf392281d20bf1ad763577c8d3a846c5891ab9 (diff)
Fixed recently introduced bug: Don't clear console unless something is being compiled
Diffstat (limited to 'src/mainwin.cc')
-rw-r--r--src/mainwin.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/mainwin.cc b/src/mainwin.cc
index 45b9ff3..be7c567 100644
--- a/src/mainwin.cc
+++ b/src/mainwin.cc
@@ -1020,6 +1020,8 @@ bool MainWindow::compileTopLevelDocument(bool reload)
}
if (shouldcompiletoplevel) {
+ console->clear();
+
updateTemporalVariables();
this->last_compiled_doc = editor->toPlainText();
@@ -1102,7 +1104,6 @@ void MainWindow::actionReloadCompile()
if (GuiLocker::isLocked()) return;
GuiLocker lock;
setCurrentOutput();
- console->clear();
// PRINT("Parsing design (AST generation)...");
// QApplication::processEvents();
contact: Jan Huwald // Impressum