summaryrefslogtreecommitdiff
path: root/Application.cpp
diff options
context:
space:
mode:
authorDaniel Wilhelm <daniel@wili.li>2014-04-18 17:12:46 +0200
committerDaniel Wilhelm <daniel@wili.li>2014-04-18 17:12:46 +0200
commitb338e29fd3eaf700f8c8360aa0310048ba941d54 (patch)
tree122f8ef3790d12cd10275ef7453a9e8053322d78 /Application.cpp
parent3.18 (diff)
downloadFreeFileSync-b338e29fd3eaf700f8c8360aa0310048ba941d54.tar.gz
FreeFileSync-b338e29fd3eaf700f8c8360aa0310048ba941d54.tar.bz2
FreeFileSync-b338e29fd3eaf700f8c8360aa0310048ba941d54.zip
3.19
Diffstat (limited to 'Application.cpp')
-rw-r--r--Application.cpp15
1 files changed, 7 insertions, 8 deletions
diff --git a/Application.cpp b/Application.cpp
index 72f5dd42..a9628646 100644
--- a/Application.cpp
+++ b/Application.cpp
@@ -91,7 +91,7 @@ void Application::OnStartApplication(wxIdleEvent&)
try //load global settings from XML: they are written on exit, so read them FIRST
{
- if (fileExists(wxToZ(xmlAccess::getGlobalConfigFile())))
+ if (fileExists(toZ(xmlAccess::getGlobalConfigFile())))
xmlAccess::readConfig(globalSettings);
//else: globalSettings already has default values
}
@@ -116,11 +116,11 @@ void Application::OnStartApplication(wxIdleEvent&)
{
const wxString arg1(argv[1]);
- if (fileExists(wxToZ(arg1))) //load file specified by %1 parameter:
+ if (fileExists(toZ(arg1))) //load file specified by %1 parameter:
cfgFilename = arg1;
- else if (fileExists(wxToZ(arg1 + wxT(".ffs_batch"))))
+ else if (fileExists(toZ(arg1 + wxT(".ffs_batch"))))
cfgFilename = arg1 + wxT(".ffs_batch");
- else if (fileExists(wxToZ(arg1 + wxT(".ffs_gui"))))
+ else if (fileExists(toZ(arg1 + wxT(".ffs_gui"))))
cfgFilename = arg1 + wxT(".ffs_gui");
else
{
@@ -242,7 +242,7 @@ void Application::runBatchMode(const wxString& filename, xmlAccess::XmlGlobalSet
//class handling status updates and error messages
BatchStatusHandler statusHandler(batchCfg.silent,
zen::extractJobName(filename),
- batchCfg.silent ? &batchCfg.logFileDirectory : NULL,
+ batchCfg.logFileDirectory,
batchCfg.logFileCountMax,
batchCfg.handleError,
switchBatchToGui,
@@ -259,8 +259,7 @@ void Application::runBatchMode(const wxString& filename, xmlAccess::XmlGlobalSet
}
//COMPARE DIRECTORIES
- zen::CompareProcess comparison(batchCfg.mainCfg.handleSymlinks,
- globSettings.fileTimeTolerance,
+ zen::CompareProcess comparison(globSettings.fileTimeTolerance,
globSettings.optDialogs,
statusHandler);
@@ -286,7 +285,7 @@ void Application::runBatchMode(const wxString& filename, xmlAccess::XmlGlobalSet
if (!batchCfg.silent)
{
const wxString soundFile = zen::getResourceDir() + wxT("Sync_Complete.wav");
- if (zen::fileExists(zen::wxToZ(soundFile)))
+ if (fileExists(toZ(soundFile)))
wxSound::Play(soundFile, wxSOUND_ASYNC); //warning: this may fail and show a wxWidgets error message!
}
}
bgstack15