From 8f759f3f843ee4977e20be6b6e30dcf4a5ea7673 Mon Sep 17 00:00:00 2001 From: kintel Date: Sat, 30 Jan 2010 23:25:43 +0000 Subject: 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 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 -- cgit v0.10.1