From: skt Date: Fri, 18 Aug 2006 08:42:11 +0000 (+0000) Subject: SWP12966 - MutiFile is not saved correctly X-Git-Tag: Before_Merging_V3_2_0_maintainance_21Sep06~8 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=03854613824f38db286665ae36496e3a3c247648;p=modules%2Fvisu.git SWP12966 - MutiFile is not saved correctly Fix in SaveAs() and SaveASCII() - QProcess class usage instead of system() call for system command execution. --- diff --git a/src/VISU_I/VISU_Gen_i.cc b/src/VISU_I/VISU_Gen_i.cc index 17a56cc2..6c890eab 100644 --- a/src/VISU_I/VISU_Gen_i.cc +++ b/src/VISU_I/VISU_Gen_i.cc @@ -72,6 +72,7 @@ // QT Includes #include #include +#include // VTK Includes #include @@ -333,12 +334,25 @@ namespace VISU aFileName = SALOMEDS_Tool::GetNameFromPath(aStudy->URL()) + aFileName; std::ostringstream aStream; - aStream<<"cp "<addArgument( comm ); + if(!proc->start()) + { + INFOS("VISU_Gen_i::Save - Cann't execute the command :"<addArgument( comm ); + if(!proc->start()) + { + if(MYDEBUG) MESSAGE("VISU_Gen_i::Save - Can't execute the command :"<