diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/mainwin.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mainwin.cc b/src/mainwin.cc index 0e10812..9ed008a 100644 --- a/src/mainwin.cc +++ b/src/mainwin.cc @@ -375,11 +375,11 @@ MainWindow::setFileName(const QString &filename) } else { QFileInfo fileinfo(filename); - QString infoFileName = fileinfo.canonicalFilePath(); setWindowTitle("OpenSCAD - " + fileinfo.fileName() + "[*]"); // Check that the canonical file path exists - only update recent files // if it does. Should prevent empty list items on initial open etc. + QString infoFileName = fileinfo.absoluteFilePath(); if (!infoFileName.isEmpty()) { this->fileName = infoFileName; QSettings settings; // already set up properly via main.cpp |