From 1f0f8e247a9fdc45f7bb0292714f1dfc1ca8dc45 Mon Sep 17 00:00:00 2001 From: David Anderson Date: Wed, 5 Jun 2013 16:55:34 -0700 Subject: [PATCH] client: if present, don't link to BOINC web site --- client/current_version.cpp | 28 ++++++++++++++++++---------- 1 file changed, 18 insertions(+), 10 deletions(-) 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) {