diff options
author | kintel <kintel@b57f626f-c46c-0410-a088-ec61d464b74c> | 2010-01-30 23:25:43 (GMT) |
---|---|---|
committer | kintel <kintel@b57f626f-c46c-0410-a088-ec61d464b74c> | 2010-01-30 23:25:43 (GMT) |
commit | 8f759f3f843ee4977e20be6b6e30dcf4a5ea7673 (patch) | |
tree | 6c202f7ca19a5110677ad4c6b8d7135f3cdf1e8b | |
parent | 3487678ca142fd9c3a9ff257d927a4f9fa2a7bc4 (diff) |
bugfix: this caused save to sometimes save to the wring directory in mdi mode
git-svn-id: http://svn.clifford.at/openscad/trunk@382 b57f626f-c46c-0410-a088-ec61d464b74c
-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 |