mirror of
https://github.com/lucaspalomodevelop/meshlab.git
synced 2026-03-19 11:04:39 +00:00
saved temporary file in system temporary folder in order to avoid problem with os writing privileges.
This commit is contained in:
parent
ce5f22ec71
commit
591ebe80e5
@ -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();
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user