From 03bbd55c9377823c67ca8ea8027b0078d6d464ba Mon Sep 17 00:00:00 2001 From: Marius Kintel Date: Sun, 19 Feb 2012 11:40:33 +0100 Subject: Fixed recently introduced bug: Don't clear console unless something is being compiled 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(); -- cgit v0.10.1