History

Need to open the temporary file in order to get the path.

Andrzej Kapolka committed 12 years ago

Commit b7e91e41 parent 02c757c1 file · +1 −0Browse files

Showing the changes to interface/src/ModelUploader.cpp (1 of 1 file). Show all

Unified · Split

interface/src/ModelUploader.cpp+1−0
@@ -127,6 +127,7 @@ bool ModelUploader::zip() { · 126 unmodified lines
127 }127 }
128 } else {128 } else {
129 fst = new QTemporaryFile(this);129 fst = new QTemporaryFile(this);
130 fst->open(QFile::WriteOnly);
130 fbxFile = filename;131 fbxFile = filename;
131 basePath = QFileInfo(filename).path();132 basePath = QFileInfo(filename).path();
132 mapping.insert(FILENAME_FIELD, QFileInfo(filename).fileName());133 mapping.insert(FILENAME_FIELD, QFileInfo(filename).fileName());