diff options
author | Marius Kintel <marius@kintel.net> | 2011-09-03 16:51:29 (GMT) |
---|---|---|
committer | Marius Kintel <marius@kintel.net> | 2011-09-03 16:51:29 (GMT) |
commit | f58c0a3eb5ce9f252e98f41ddc34dcb70a68052b (patch) | |
tree | a2f3fb5b102e494feadc7c4e6e1cbf843f0699e3 /src/mainwin.cc | |
parent | 16b74df94104525436342e7a128573a2a63d3494 (diff) |
Some cleanup of the Context class
Diffstat (limited to 'src/mainwin.cc')
-rw-r--r-- | src/mainwin.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mainwin.cc b/src/mainwin.cc index 6408418..4b5ba89 100644 --- a/src/mainwin.cc +++ b/src/mainwin.cc @@ -495,7 +495,7 @@ MainWindow::setFileName(const QString &filename) { if (filename.isEmpty()) { this->fileName.clear(); - this->root_ctx.document_path = currentdir.toStdString(); + this->root_ctx.setDocumentPath(currentdir.toStdString()); setWindowTitle("OpenSCAD - New Document[*]"); } else { @@ -518,7 +518,7 @@ MainWindow::setFileName(const QString &filename) this->fileName = fileinfo.fileName(); } - this->root_ctx.document_path = fileinfo.dir().absolutePath().toStdString(); + this->root_ctx.setDocumentPath(fileinfo.dir().absolutePath().toStdString()); QDir::setCurrent(fileinfo.dir().absolutePath()); } |