diff options
Diffstat (limited to 'FreeFileSync/Source/RealTimeSync/application.cpp')
-rw-r--r-- | FreeFileSync/Source/RealTimeSync/application.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/FreeFileSync/Source/RealTimeSync/application.cpp b/FreeFileSync/Source/RealTimeSync/application.cpp index 9c1fa138..5f2531f1 100644 --- a/FreeFileSync/Source/RealTimeSync/application.cpp +++ b/FreeFileSync/Source/RealTimeSync/application.cpp @@ -41,6 +41,10 @@ bool Application::OnInit() { //do not call wxApp::OnInit() to avoid using wxWidgets command line parser + try { initResourceImages(fff::getResourceDirPf() + Zstr("Icons.zip")); } + catch (FileError&) { assert(false); } + //errors are not really critical in this context + //GTK should already have been initialized by wxWidgets (see \src\gtk\app.cpp:wxApp::Initialize) #if GTK_MAJOR_VERSION == 2 ::gtk_rc_parse((fff::getResourceDirPf() + "Gtk2Styles.rc").c_str()); @@ -81,8 +85,6 @@ bool Application::OnInit() SetAppName(L"RealTimeSync"); - initResourceImages(fff::getResourceDirPf() + Zstr("Icons.zip")); - try { fff::setLanguage(getProgramLanguage()); //throw FileError |