summaryrefslogtreecommitdiff
path: root/Application.cpp
diff options
context:
space:
mode:
authorDaniel Wilhelm <daniel@wili.li>2014-04-18 17:22:18 +0200
committerDaniel Wilhelm <daniel@wili.li>2014-04-18 17:22:18 +0200
commitbcc5cc28c6dc5178e8f4fd0cc521034ae5def388 (patch)
treebacc60d27b435d32172f97643576c5e4e953177d /Application.cpp
parent5.9 (diff)
downloadFreeFileSync-bcc5cc28c6dc5178e8f4fd0cc521034ae5def388.tar.gz
FreeFileSync-bcc5cc28c6dc5178e8f4fd0cc521034ae5def388.tar.bz2
FreeFileSync-bcc5cc28c6dc5178e8f4fd0cc521034ae5def388.zip
5.10
Diffstat (limited to 'Application.cpp')
-rw-r--r--Application.cpp10
1 files changed, 6 insertions, 4 deletions
diff --git a/Application.cpp b/Application.cpp
index 327681bf..aa2fa856 100644
--- a/Application.cpp
+++ b/Application.cpp
@@ -59,7 +59,7 @@ void onTerminationRequested()
void crtInvalidParameterHandler(const wchar_t* expression, const wchar_t* function, const wchar_t* file, unsigned int line, uintptr_t pReserved) { assert(false); }
#endif
}
-#endif
+#endif
bool Application::OnInit()
@@ -386,6 +386,7 @@ void runBatchMode(const Zstring& filename, FfsReturnCode& returnCode)
timeStamp,
batchCfg.logFileDirectory,
batchCfg.logfilesCountLimit,
+ globalCfg.lastSyncsLogFileSizeMax,
batchCfg.handleError,
switchBatchToGui,
returnCode,
@@ -410,13 +411,14 @@ void runBatchMode(const Zstring& filename, FfsReturnCode& returnCode)
std::unique_ptr<LockHolder> dummy;
if (globalCfg.createLockFile)
{
- dummy.reset(new LockHolder(allowPwPrompt));
+ std::vector<Zstring> dirnames;
std::for_each(cmpConfig.begin(), cmpConfig.end(),
[&](const FolderPairCfg& fpCfg)
{
- dummy->addDir(fpCfg.leftDirectoryFmt, statusHandler);
- dummy->addDir(fpCfg.rightDirectoryFmt, statusHandler);
+ dirnames.push_back(fpCfg.leftDirectoryFmt);
+ dirnames.push_back(fpCfg.rightDirectoryFmt);
});
+ dummy = make_unique<LockHolder>(dirnames, statusHandler, allowPwPrompt);
}
//COMPARE DIRECTORIES
bgstack15