From 03854613824f38db286665ae36496e3a3c247648 Mon Sep 17 00:00:00 2001 From: skt Date: Fri, 18 Aug 2006 08:42:11 +0000 Subject: [PATCH] SWP12966 - MutiFile is not saved correctly Fix in SaveAs() and SaveASCII() - QProcess class usage instead of system() call for system command execution. --- src/VISU_I/VISU_Gen_i.cc | 41 ++++++++++++++++++++++++++++++++-------- 1 file changed, 33 insertions(+), 8 deletions(-) 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 :"<