summaryrefslogtreecommitdiff
path: root/RealtimeSync/application.cpp
diff options
context:
space:
mode:
authorDaniel Wilhelm <daniel@wili.li>2014-04-18 17:00:50 +0200
committerDaniel Wilhelm <daniel@wili.li>2014-04-18 17:00:50 +0200
commit4ecfd41e36533d858c98d051ef70cab80e69e972 (patch)
treeca07d8745967d2c6a7123a5d32269cfbfaa7bd6c /RealtimeSync/application.cpp
parent2.2 (diff)
downloadFreeFileSync-4ecfd41e36533d858c98d051ef70cab80e69e972.tar.gz
FreeFileSync-4ecfd41e36533d858c98d051ef70cab80e69e972.tar.bz2
FreeFileSync-4ecfd41e36533d858c98d051ef70cab80e69e972.zip
2.3
Diffstat (limited to 'RealtimeSync/application.cpp')
-rw-r--r--RealtimeSync/application.cpp18
1 files changed, 1 insertions, 17 deletions
diff --git a/RealtimeSync/application.cpp b/RealtimeSync/application.cpp
index 5515ded5..827a54c6 100644
--- a/RealtimeSync/application.cpp
+++ b/RealtimeSync/application.cpp
@@ -44,23 +44,7 @@ void Application::OnStartApplication(wxIdleEvent& event)
#endif
//set program language
- try
- {
- FreeFileSync::CustomLocale::getInstance().setLanguage(RealtimeSync::getProgramLanguage());
- }
- catch (const xmlAccess::XmlError& error)
- {
- if (wxFileExists(FreeFileSync::getGlobalConfigFile()))
- {
- SetExitOnFrameDelete(false); //prevent error messagebox from becoming top-level window
- if (error.getSeverity() == xmlAccess::XmlError::WARNING)
- wxMessageBox(error.show(), _("Warning"), wxOK | wxICON_WARNING);
- else
- wxMessageBox(error.show(), _("Error"), wxOK | wxICON_ERROR);
- SetExitOnFrameDelete(true);
-
- }
- }
+ FreeFileSync::CustomLocale::getInstance().setLanguage(RealtimeSync::getProgramLanguage());
//try to set config/batch-filename set by %1 parameter
wxString cfgFilename;
bgstack15