static QString aCommand;
std::string aFilePath = theTmpDir + aFileName;
- aCommand.sprintf(" %s %s", GetFileInfo().filePath().toLatin1().data(), aFilePath.c_str());
+ aCommand.sprintf(" \"%s\" \"%s\"", GetFileInfo().filePath().toLatin1().data(), aFilePath.c_str());
aCommand = QDir::convertSeparators( aCommand );
aCommand.prepend( COPY_COMMAND );
if (theIsMultiFile) { // set this file as new - temporary
static QString aCommand;
- aCommand.sprintf(" %s %s%s",aHDFFileName, aResultPath, myFileInfo.baseName().toLatin1().data());
+ aCommand.sprintf(" \"%s\" \"%s%s\"",aHDFFileName, aResultPath, myFileInfo.baseName().toLatin1().data());
aCommand = QDir::convertSeparators( aCommand );
aCommand.prepend( MOVE_COMMAND );
myFileInfo.setFile(QString(aResultPath) + myFileInfo.baseName());
} else { // change current temporary file to the new: with hdf-format
static QString aCommand;
- aCommand.sprintf(" %s %s\0",aHDFFileName, myFileInfo.filePath().toLatin1().data());
+ aCommand.sprintf(" \"%s\" \"%s\"\0",aHDFFileName, myFileInfo.filePath().toLatin1().data());
aCommand = QDir::convertSeparators( aCommand );
aCommand.prepend( MOVE_COMMAND );
{
static QString aCommand;
const char* aTempFileName = myFileInfo.absoluteFilePath().toLatin1();
- aCommand.sprintf(" %s %s", aTempFileName, theTargetFileName);
+ aCommand.sprintf(" \"%s\" \"%s\"", aTempFileName, theTargetFileName);
aCommand = QDir::convertSeparators( aCommand );
aCommand.prepend( COPY_COMMAND );