summaryrefslogtreecommitdiff
path: root/RealtimeSync/xml_ffs.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'RealtimeSync/xml_ffs.cpp')
-rw-r--r--RealtimeSync/xml_ffs.cpp8
1 files changed, 5 insertions, 3 deletions
diff --git a/RealtimeSync/xml_ffs.cpp b/RealtimeSync/xml_ffs.cpp
index be798efc..1c98cc57 100644
--- a/RealtimeSync/xml_ffs.cpp
+++ b/RealtimeSync/xml_ffs.cpp
@@ -45,21 +45,23 @@ xmlAccess::XmlRealConfig convertBatchToReal(const xmlAccess::XmlBatchConfig& bat
//additional folders
for (std::vector<ffs3::FolderPairEnh>::const_iterator i = batchCfg.mainCfg.additionalPairs.begin();
- i != batchCfg.mainCfg.additionalPairs.end(); ++i)
+ i != batchCfg.mainCfg.additionalPairs.end(); ++i)
{
uniqueFolders.insert(zToWx(i->leftDirectory));
uniqueFolders.insert(zToWx(i->rightDirectory));
}
+ uniqueFolders.erase(wxString());
+
output.directories.insert(output.directories.end(), uniqueFolders.begin(), uniqueFolders.end());
- output.commandline = ffs3::getBinaryDir() +
+ output.commandline = wxT("\"") + ffs3::getBinaryDir() +
#ifdef FFS_WIN
wxT("FreeFileSync.exe") +
#elif defined FFS_LINUX
wxT("FreeFileSync") +
#endif
- wxT(" \"") + filename + wxT("\"");
+ wxT("\" \"") + filename + wxT("\"");
return output;
}
bgstack15