saved temporary file in system temporary folder in order to avoid problem with os writing privileges.

This commit is contained in:
Guido Ranzuglia granzuglia 2012-03-22 17:38:55 +00:00
parent ce5f22ec71
commit 591ebe80e5

View File

@ -122,8 +122,9 @@ int FilterSSynth::getRequirements(QAction *)
b.build();
renderer.end();
QString output=renderer.getOutput();
QFile file("output.x3d");
if(!file.open(QFile::WriteOnly | QFile::Text)){assert(0); return QString("");}
(*cb)(0, "Temp");
QFile file(QDir::tempPath() + "/output.x3d");
if(!file.open(QFile::WriteOnly | QFile::Text)){(*cb)(0, "PORCO DIO!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!");; return QString("");}
QTextStream outp(&file);
outp << output;
file.close();