diff options
author | Armin Weatherwax | 2010-03-27 18:55:36 +0100 |
---|---|---|
committer | Armin Weatherwax | 2010-04-12 17:13:03 +0200 |
commit | ca315cbe559b459de7e9554d79e27f0b738fbd8a (patch) | |
tree | e7700f4b9ad6711b2893b5a4973d146cf905ed6a /linden/indra/newview | |
parent | fix show correct register account and lost password web page (diff) | |
download | meta-impy-ca315cbe559b459de7e9554d79e27f0b738fbd8a.zip meta-impy-ca315cbe559b459de7e9554d79e27f0b738fbd8a.tar.gz meta-impy-ca315cbe559b459de7e9554d79e27f0b738fbd8a.tar.bz2 meta-impy-ca315cbe559b459de7e9554d79e27f0b738fbd8a.tar.xz |
fix bring help-f1 page under control of hippogridmanager
Diffstat (limited to '')
-rw-r--r-- | linden/indra/newview/llfloaterhtmlhelp.cpp | 36 | ||||
-rw-r--r-- | linden/indra/newview/llstartup.cpp | 13 | ||||
-rw-r--r-- | linden/indra/newview/llviewermenu.cpp | 2 | ||||
-rw-r--r-- | linden/indra/newview/skins/default/xui/en-us/notifications.xml | 9 |
4 files changed, 38 insertions, 22 deletions
diff --git a/linden/indra/newview/llfloaterhtmlhelp.cpp b/linden/indra/newview/llfloaterhtmlhelp.cpp index 2a22a40..ff69394 100644 --- a/linden/indra/newview/llfloaterhtmlhelp.cpp +++ b/linden/indra/newview/llfloaterhtmlhelp.cpp | |||
@@ -54,6 +54,7 @@ | |||
54 | #include "llviewerparcelmedia.h" | 54 | #include "llviewerparcelmedia.h" |
55 | #include "llcombobox.h" | 55 | #include "llcombobox.h" |
56 | 56 | ||
57 | #include "hippoGridManager.h" | ||
57 | 58 | ||
58 | LLFloaterMediaBrowser::LLFloaterMediaBrowser(const LLSD& media_data) | 59 | LLFloaterMediaBrowser::LLFloaterMediaBrowser(const LLSD& media_data) |
59 | { | 60 | { |
@@ -454,22 +455,18 @@ void LLFloaterHtmlHelp::show(std::string url, std::string title) | |||
454 | LLFloaterHtml* floater_html = LLFloaterHtml::getInstance(); | 455 | LLFloaterHtml* floater_html = LLFloaterHtml::getInstance(); |
455 | floater_html->setVisible(FALSE); | 456 | floater_html->setVisible(FALSE); |
456 | 457 | ||
457 | if (url.empty()) | 458 | url = gHippoGridManager->getConnectedGrid()->getSupportUrl(); |
458 | { | 459 | if (!url.empty()) { |
459 | url = floater_html->getSupportUrl(); | 460 | if (gSavedSettings.getBOOL("UseExternalBrowser")) { |
460 | } | 461 | LLSD payload; |
461 | 462 | payload["url"] = url; | |
462 | if (gSavedSettings.getBOOL("UseExternalBrowser")) | 463 | LLNotifications::instance().add("ClickOpenF1Help", LLSD(), payload, onClickF1HelpLoadURL); |
463 | { | 464 | } else { |
464 | LLSD payload; | 465 | // don't wait, just do it |
465 | payload["url"] = url; | 466 | LLWeb::loadURL(url); |
466 | 467 | } | |
467 | LLNotifications::instance().add("ClickOpenF1Help", LLSD(), payload, onClickF1HelpLoadURL); | 468 | } else { |
468 | } | 469 | LLNotifications::instance().add("NoSupportUrl"); |
469 | else | ||
470 | { | ||
471 | // don't wait, just do it | ||
472 | LLWeb::loadURL(url); | ||
473 | } | 470 | } |
474 | } | 471 | } |
475 | 472 | ||
@@ -479,7 +476,12 @@ bool LLFloaterHtmlHelp::onClickF1HelpLoadURL(const LLSD& notification, const LLS | |||
479 | S32 option = LLNotification::getSelectedOption(notification, response); | 476 | S32 option = LLNotification::getSelectedOption(notification, response); |
480 | if (option == 0) | 477 | if (option == 0) |
481 | { | 478 | { |
482 | LLWeb::loadURL(notification["payload"]["url"].asString()); | 479 | const std::string &url = notification["payload"]["url"].asString(); |
480 | if (!url.empty()) { | ||
481 | LLWeb::loadURL(url); | ||
482 | } else { | ||
483 | llwarns << "Support URL not available." << llendl; | ||
484 | } | ||
483 | } | 485 | } |
484 | return false; | 486 | return false; |
485 | } | 487 | } |
diff --git a/linden/indra/newview/llstartup.cpp b/linden/indra/newview/llstartup.cpp index e7271b8..ef25fb8 100644 --- a/linden/indra/newview/llstartup.cpp +++ b/linden/indra/newview/llstartup.cpp | |||
@@ -2914,7 +2914,12 @@ bool first_run_dialog_callback(const LLSD& notification, const LLSD& response) | |||
2914 | if (0 == option) | 2914 | if (0 == option) |
2915 | { | 2915 | { |
2916 | LL_DEBUGS("AppInit") << "First run dialog cancelling" << LL_ENDL; | 2916 | LL_DEBUGS("AppInit") << "First run dialog cancelling" << LL_ENDL; |
2917 | LLWeb::loadURL( CREATE_ACCOUNT_URL ); | 2917 | const std::string &url = gHippoGridManager->getConnectedGrid()->getRegisterUrl(); |
2918 | if (!url.empty()) { | ||
2919 | LLWeb::loadURL(url); | ||
2920 | } else { | ||
2921 | llwarns << "Account creation URL is empty" << llendl; | ||
2922 | } | ||
2918 | } | 2923 | } |
2919 | 2924 | ||
2920 | LLPanelLogin::giveFocus(); | 2925 | LLPanelLogin::giveFocus(); |
@@ -2939,9 +2944,11 @@ bool login_alert_status(const LLSD& notification, const LLSD& response) | |||
2939 | { | 2944 | { |
2940 | case 0: // OK | 2945 | case 0: // OK |
2941 | break; | 2946 | break; |
2942 | case 1: // Help | 2947 | case 1: { // Help |
2943 | LLWeb::loadURL( SUPPORT_URL ); | 2948 | const std::string &url = gHippoGridManager->getConnectedGrid()->getSupportUrl(); |
2949 | if (!url.empty()) LLWeb::loadURL(url); | ||
2944 | break; | 2950 | break; |
2951 | } | ||
2945 | case 2: // Teleport | 2952 | case 2: // Teleport |
2946 | // Restart the login process, starting at our home locaton | 2953 | // Restart the login process, starting at our home locaton |
2947 | LLURLSimString::setString(LLURLSimString::sLocationStringHome); | 2954 | LLURLSimString::setString(LLURLSimString::sLocationStringHome); |
diff --git a/linden/indra/newview/llviewermenu.cpp b/linden/indra/newview/llviewermenu.cpp index 2e72a2a..41c3578 100644 --- a/linden/indra/newview/llviewermenu.cpp +++ b/linden/indra/newview/llviewermenu.cpp | |||
@@ -5865,7 +5865,7 @@ class LLShowFloater : public view_listener_t | |||
5865 | } | 5865 | } |
5866 | else if (floater_name == "help f1") | 5866 | else if (floater_name == "help f1") |
5867 | { | 5867 | { |
5868 | LLFloaterMediaBrowser::helpF1(); | 5868 | gViewerHtmlHelp.show(); |
5869 | } | 5869 | } |
5870 | else if (floater_name == "help tutorial") | 5870 | else if (floater_name == "help tutorial") |
5871 | { | 5871 | { |
diff --git a/linden/indra/newview/skins/default/xui/en-us/notifications.xml b/linden/indra/newview/skins/default/xui/en-us/notifications.xml index efc45d0..b0deeef 100644 --- a/linden/indra/newview/skins/default/xui/en-us/notifications.xml +++ b/linden/indra/newview/skins/default/xui/en-us/notifications.xml | |||
@@ -4130,7 +4130,7 @@ Add this Ability to '[ROLE_NAME]'? | |||
4130 | icon="alertmodal.tga" | 4130 | icon="alertmodal.tga" |
4131 | name="ClickOpenF1Help" | 4131 | name="ClickOpenF1Help" |
4132 | type="alertmodal"> | 4132 | type="alertmodal"> |
4133 | Visit the [SECOND_LIFE] Support Website? (note: this is not an Imprudence Help site) | 4133 | Visit the [GRID] Support Web site? |
4134 | <usetemplate | 4134 | <usetemplate |
4135 | ignoretext="When visiting the Support Website." | 4135 | ignoretext="When visiting the Support Website." |
4136 | name="okcancelignore" | 4136 | name="okcancelignore" |
@@ -4140,6 +4140,13 @@ Add this Ability to '[ROLE_NAME]'? | |||
4140 | 4140 | ||
4141 | <notification | 4141 | <notification |
4142 | icon="alertmodal.tga" | 4142 | icon="alertmodal.tga" |
4143 | name="NoSupportUrl" | ||
4144 | type="alertmodal"> | ||
4145 | [GRID] has no link for support. | ||
4146 | </notification> | ||
4147 | |||
4148 | <notification | ||
4149 | icon="alertmodal.tga" | ||
4143 | name="ConfirmQuit" | 4150 | name="ConfirmQuit" |
4144 | type="alertmodal"> | 4151 | type="alertmodal"> |
4145 | Are you sure you want to quit? | 4152 | Are you sure you want to quit? |