mirror of https://github.com/vitalif/openscad
Merge pull request #788 from OskarLinde/autoreload_undo_fix
auto-reload & compile with internal editor preserve undo statusmaster
commit
eb98e55477
|
@ -657,6 +657,7 @@ void MainWindow::refreshDocument()
|
|||
reader.setCodec("UTF-8");
|
||||
QString text = reader.readAll();
|
||||
PRINTB("Loaded design '%s'.", this->fileName.toLocal8Bit().constData());
|
||||
if (editor->toPlainText() != text)
|
||||
editor->setPlainText(text);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue