diff --git a/client/current_version.cpp b/client/current_version.cpp index 8c5bc1e798..a991683f20 100644 --- a/client/current_version.cpp +++ b/client/current_version.cpp @@ -83,16 +83,24 @@ static bool parse_version(FILE* f, char* new_version, int len) { } static void show_newer_version_msg(const char* new_vers) { - msg_printf_notice(0, true, - "http://boinc.berkeley.edu/manager_links.php?target=notice&controlid=download", - "%s (%s) %s", - config.client_new_version_text.empty() - ? _("A new version of BOINC is available.") - : config.client_new_version_text.c_str(), - new_vers, - config.client_download_url.c_str(), - _("Download") - ); + if (config.client_new_version_text.empty()) { + msg_printf_notice(0, true, + "http://boinc.berkeley.edu/manager_links.php?target=notice&controlid=download", + "%s (%s) %s", + _("A new version of BOINC is available."), + new_vers, + config.client_download_url.c_str(), + _("Download") + ); + } else { + msg_printf_notice(0, true, NULL, + "%s (%s) %s", + config.client_new_version_text.c_str(), + new_vers, + config.client_download_url.c_str(), + _("Download") + ); + } } void GET_CURRENT_VERSION_OP::handle_reply(int http_op_retval) {