From c32707148292d104c66276b43796d6057c8c7a5d Mon Sep 17 00:00:00 2001 From: Daniel Wilhelm Date: Fri, 18 Apr 2014 17:08:42 +0200 Subject: 3.10 --- Application.cpp | 23 ++++++++++++++++------- 1 file changed, 16 insertions(+), 7 deletions(-) (limited to 'Application.cpp') diff --git a/Application.cpp b/Application.cpp index 120bd567..af111a65 100644 --- a/Application.cpp +++ b/Application.cpp @@ -102,6 +102,15 @@ void Application::OnStartApplication(wxIdleEvent&) GlobalResources::getInstance().load(); //loads bitmap resources on program startup +#ifndef _MSC_VER +#warning wxWidgets 2.9 +#endif + /* + wxToolTip::SetMaxWidth(-1); //disable tooltip wrapping + wxToolTip::SetAutoPop(7000); //tooltip visibilty in ms, 5s seems to be default for Windows + */ + + try //load global settings from XML { if (fileExists(wxToZ(xmlAccess::getGlobalConfigFile()))) @@ -182,9 +191,10 @@ int Application::OnExit() { xmlAccess::writeConfig(globalSettings); } - catch (const xmlAccess::XmlError& error) + catch (const xmlAccess::XmlError&) { - wxMessageBox(error.msg(), _("Error"), wxOK | wxICON_ERROR); + //wxMessageBox(error.msg(), _("Error"), wxOK | wxICON_ERROR); -> not that important/might be tedious in silent batch? + assert(false); //get info in debug build } return 0; @@ -233,10 +243,9 @@ void Application::runBatchMode(const wxString& filename, xmlAccess::XmlGlobalSet //COMPARE DIRECTORIES ffs3::FolderComparison folderCmp; ffs3::CompareProcess comparison(batchCfg.mainCfg.handleSymlinks, - globSettings.fileTimeTolerance, - globSettings.ignoreOneHourDiff, - globSettings.optDialogs, - statusHandler.get()); + globSettings.fileTimeTolerance, + globSettings.optDialogs, + statusHandler.get()); comparison.startCompareProcess(ffs3::extractCompareCfg(batchCfg.mainCfg), batchCfg.mainCfg.compareVar, @@ -245,7 +254,7 @@ void Application::runBatchMode(const wxString& filename, xmlAccess::XmlGlobalSet //check if there are files/folders to be sync'ed at all if (!synchronizationNeeded(folderCmp)) { - statusHandler->reportInfo(_("Nothing to synchronize according to configuration!")); //inform about this special case + statusHandler->logInfo(_("Nothing to synchronize according to configuration!")); //inform about this special case //return; -> disabled: mode requires database to be written in any case } -- cgit