aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden
diff options
context:
space:
mode:
authorMcCabe Maxsted2010-11-12 21:21:22 -0700
committerMcCabe Maxsted2010-11-12 21:28:35 -0700
commitff01376fbe48d8265ba1f56a34e9934595a9699b (patch)
tree1c5605f9ee08c79d5bdf17a3d1b96e6b54f16e33 /linden
parentFixed the align tool label not hiding when switching tabs in the tools window (diff)
downloadmeta-impy-ff01376fbe48d8265ba1f56a34e9934595a9699b.zip
meta-impy-ff01376fbe48d8265ba1f56a34e9934595a9699b.tar.gz
meta-impy-ff01376fbe48d8265ba1f56a34e9934595a9699b.tar.bz2
meta-impy-ff01376fbe48d8265ba1f56a34e9934595a9699b.tar.xz
Fixed View > Web Browser sometimes loading the external browser and made it a menu item check rather than a call
Diffstat (limited to 'linden')
-rw-r--r--linden/indra/newview/llviewermenu.cpp13
-rw-r--r--linden/indra/newview/skins/default/xui/en-us/menu_viewer.xml5
2 files changed, 15 insertions, 3 deletions
diff --git a/linden/indra/newview/llviewermenu.cpp b/linden/indra/newview/llviewermenu.cpp
index b81a2a2..7f00382 100644
--- a/linden/indra/newview/llviewermenu.cpp
+++ b/linden/indra/newview/llviewermenu.cpp
@@ -6093,7 +6093,14 @@ class LLShowFloater : public view_listener_t
6093 } 6093 }
6094 else if (floater_name == "inworld browser") 6094 else if (floater_name == "inworld browser")
6095 { 6095 {
6096 LLWeb::loadURL(gSavedSettings.getString("BrowserHome")); 6096 if (LLFloaterMediaBrowser::instanceVisible())
6097 {
6098 LLFloaterMediaBrowser::getInstance()->close();
6099 }
6100 else
6101 {
6102 LLWeb::loadURLInternal(gSavedSettings.getString("BrowserHome"));
6103 }
6097 } 6104 }
6098 else if (floater_name == "beacons") 6105 else if (floater_name == "beacons")
6099 { 6106 {
@@ -6163,6 +6170,10 @@ class LLFloaterVisible : public view_listener_t
6163 LLInventoryView* iv = LLInventoryView::getActiveInventory(); 6170 LLInventoryView* iv = LLInventoryView::getActiveInventory();
6164 new_value = (NULL != iv && TRUE == iv->getVisible()); 6171 new_value = (NULL != iv && TRUE == iv->getVisible());
6165 } 6172 }
6173 else if (floater_name == "inworld browser")
6174 {
6175 new_value = LLFloaterMediaBrowser::instanceVisible();
6176 }
6166 else if (floater_name == "areasearch") 6177 else if (floater_name == "areasearch")
6167 { 6178 {
6168 JCFloaterAreaSearch* instn = JCFloaterAreaSearch::getInstance(); 6179 JCFloaterAreaSearch* instn = JCFloaterAreaSearch::getInstance();
diff --git a/linden/indra/newview/skins/default/xui/en-us/menu_viewer.xml b/linden/indra/newview/skins/default/xui/en-us/menu_viewer.xml
index 53e9e2d..268ae2b 100644
--- a/linden/indra/newview/skins/default/xui/en-us/menu_viewer.xml
+++ b/linden/indra/newview/skins/default/xui/en-us/menu_viewer.xml
@@ -311,10 +311,11 @@
311 <on_enable function="View.EnableLastChatter" /> 311 <on_enable function="View.EnableLastChatter" />
312 </menu_item_call> 312 </menu_item_call>
313 <menu_item_separator /> 313 <menu_item_separator />
314 <menu_item_call name="Web Browser" label="Web Browser" 314 <menu_item_check name="Web Browser" label="Web Browser"
315 shortcut="control|B"> 315 shortcut="control|B">
316 <on_click function="ShowFloater" userdata="inworld browser" /> 316 <on_click function="ShowFloater" userdata="inworld browser" />
317 </menu_item_call> 317 <on_check function="FloaterVisible" userdata="inworld browser" />
318 </menu_item_check>
318 <menu_item_separator /> 319 <menu_item_separator />
319 <menu_item_check name="Toolbar" label="Toolbar"> 320 <menu_item_check name="Toolbar" label="Toolbar">
320 <on_click function="ShowFloater" userdata="toolbar" /> 321 <on_click function="ShowFloater" userdata="toolbar" />