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/llfloaterhtmlhelp.cpp | |
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 |
1 files changed, 19 insertions, 17 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 | } |