diff --git a/src/mainwin.cc b/src/mainwin.cc index f6a04b79..94f5c77c 100644 --- a/src/mainwin.cc +++ b/src/mainwin.cc @@ -526,6 +526,7 @@ MainWindow::openFile(const QString &new_filename) #endif setFileName(actual_filename); editor->setPlainText(""); + this->last_compiled_doc = ""; fileChangedOnDisk(); // force cached autoReloadId to update refreshDocument();