From d74e1d24b2701c1877919cd83d6cd1ec13e757fd Mon Sep 17 00:00:00 2001 From: skt Date: Tue, 22 Aug 2006 08:50:55 +0000 Subject: [PATCH] Fix SWP12966 - Multifile is not saved. --- src/VISU_I/VISU_Gen_i.cc | 44 +++++++++++----------------------------- 1 file changed, 12 insertions(+), 32 deletions(-) diff --git a/src/VISU_I/VISU_Gen_i.cc b/src/VISU_I/VISU_Gen_i.cc index 6c890eab..b462efcb 100644 --- a/src/VISU_I/VISU_Gen_i.cc +++ b/src/VISU_I/VISU_Gen_i.cc @@ -338,21 +338,11 @@ namespace VISU std::string aCommand = aStream.str(); QString comm = QDir::convertSeparators( QString(aCommand.c_str()) ); - const char* cp = comm.latin1(); - - - QProcess* proc = new QProcess(); - proc->addArgument( comm ); - if(!proc->start()) - { - INFOS("VISU_Gen_i::Save - Cann't execute the command :"<URL()).c_str(); QString aFileName = aPrefix + "_" + (pResult->GetName()).c_str(); + QString tmpDir = QDir::convertSeparators( QString(aTmpDir.ToCString()) );; static QString aCommand; - aCommand.sprintf("cp %s %s%s",aFileInfo.filePath().latin1(),aTmpDir.ToCString(),aFileName.latin1()); - - QString comm = QDir::convertSeparators( aCommand ); - - QProcess* proc = new QProcess(); - proc->addArgument( comm ); - if(!proc->start()) - { - if(MYDEBUG) MESSAGE("VISU_Gen_i::Save - Can't execute the command :"<