summaryrefslogtreecommitdiff
path: root/src/mainwin.cc
diff options
context:
space:
mode:
authorMarius Kintel <marius@kintel.net>2013-09-19 02:53:50 (GMT)
committerMarius Kintel <marius@kintel.net>2013-09-19 02:53:50 (GMT)
commit2e21f3deff585731d5377490cde87eeccd917445 (patch)
treecb94cbc46722e3e7de06978321ef4cb4ff07f39b /src/mainwin.cc
parent322664cb123714b3ed9a45a2be3db72c4bbe36b8 (diff)
Don't recompile while editing the text. Wait until saving or manual refresh. Fixes #482
Diffstat (limited to 'src/mainwin.cc')
-rw-r--r--src/mainwin.cc4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/mainwin.cc b/src/mainwin.cc
index 783772c..fd1c552 100644
--- a/src/mainwin.cc
+++ b/src/mainwin.cc
@@ -632,7 +632,9 @@ void MainWindow::compile(bool reload, bool forcedone)
// if we haven't yet compiled the current text.
else {
QString current_doc = editor->toPlainText();
- if (current_doc != last_compiled_doc) shouldcompiletoplevel = true;
+ if (current_doc != last_compiled_doc && last_compiled_doc.size() == 0) {
+ shouldcompiletoplevel = true;
+ }
}
}
else {
contact: Jan Huwald // Impressum