diff --git a/Code/Common/mvdI18nApplication.cxx b/Code/Common/mvdI18nApplication.cxx index d241bde9776cb6a59a1a04c31f94c8ecd55ab286..dd61392fd4f6be790c866b3c9018d72daaa6bba8 100644 --- a/Code/Common/mvdI18nApplication.cxx +++ b/Code/Common/mvdI18nApplication.cxx @@ -83,12 +83,12 @@ I18nApplication QDir build_i18n_dir( bin_dir ); // If build dir is identified... - if( build_i18n_dir.exists( "../i18n" ) + if( (build_i18n_dir.exists( "../i18n" ) && build_i18n_dir.cd( "../i18n" ) - && build_i18n_dir.exists( "../" Monteverdi2_CONFIGURE_FILE ) - || build_i18n_dir.exists( "../../i18n" ) + && build_i18n_dir.exists( "../" Monteverdi2_CONFIGURE_FILE )) + || (build_i18n_dir.exists( "../../i18n" ) && build_i18n_dir.cd( "../../i18n" ) - && build_i18n_dir.exists( "../" Monteverdi2_CONFIGURE_FILE ) ) + && build_i18n_dir.exists( "../" Monteverdi2_CONFIGURE_FILE )) ) { m_IsRunningFromBuildDir = true;