diff options
author | McCabe Maxsted | 2011-04-11 15:11:32 -0700 |
---|---|---|
committer | McCabe Maxsted | 2011-04-11 15:11:32 -0700 |
commit | ada0a0c6402f5746394dcb6a3f557fdc43b48a3e (patch) | |
tree | 1185f3732a5488f5a146f1bd45aea0d35d320cf5 | |
parent | Ported the GPL version of Zwagoth Klaar's fix for sculpty crashers. This has ... (diff) | |
download | meta-impy-ada0a0c6402f5746394dcb6a3f557fdc43b48a3e.zip meta-impy-ada0a0c6402f5746394dcb6a3f557fdc43b48a3e.tar.gz meta-impy-ada0a0c6402f5746394dcb6a3f557fdc43b48a3e.tar.bz2 meta-impy-ada0a0c6402f5746394dcb6a3f557fdc43b48a3e.tar.xz |
Updated the fix for #721: search lags, to include a checkbox to save search results for users who prefer to lag but keep their search resluts open
-rw-r--r-- | linden/indra/newview/app_settings/settings.xml | 11 | ||||
-rw-r--r-- | linden/indra/newview/llfloaterdirectory.cpp | 11 | ||||
-rw-r--r-- | linden/indra/newview/skins/default/xui/en-us/floater_directory.xml | 4 |
3 files changed, 23 insertions, 3 deletions
diff --git a/linden/indra/newview/app_settings/settings.xml b/linden/indra/newview/app_settings/settings.xml index ad9cfea..00c30c1 100644 --- a/linden/indra/newview/app_settings/settings.xml +++ b/linden/indra/newview/app_settings/settings.xml | |||
@@ -957,6 +957,17 @@ | |||
957 | <key>Value</key> | 957 | <key>Value</key> |
958 | <real>0.0</real> | 958 | <real>0.0</real> |
959 | </map> | 959 | </map> |
960 | <key>SaveSearchResults</key> | ||
961 | <map> | ||
962 | <key>Comment</key> | ||
963 | <string>Saves search results when closing search window rather than clearing resources</string> | ||
964 | <key>Persist</key> | ||
965 | <integer>1</integer> | ||
966 | <key>Type</key> | ||
967 | <string>Boolean</string> | ||
968 | <key>Value</key> | ||
969 | <integer>0</integer> | ||
970 | </map> | ||
960 | <key>ShowLookAtNames</key> | 971 | <key>ShowLookAtNames</key> |
961 | <map> | 972 | <map> |
962 | <key>Comment</key> | 973 | <key>Comment</key> |
diff --git a/linden/indra/newview/llfloaterdirectory.cpp b/linden/indra/newview/llfloaterdirectory.cpp index 7c8ddf1..23a9b81 100644 --- a/linden/indra/newview/llfloaterdirectory.cpp +++ b/linden/indra/newview/llfloaterdirectory.cpp | |||
@@ -466,9 +466,14 @@ void LLFloaterDirectory::setVisible(BOOL visible) | |||
466 | 466 | ||
467 | void LLFloaterDirectory::onClose(bool app_quitting) | 467 | void LLFloaterDirectory::onClose(bool app_quitting) |
468 | { | 468 | { |
469 | LLFloater::onClose(app_quitting); | 469 | if (gSavedSettings.getBOOL("SaveSearchResults")) |
470 | 470 | { | |
471 | //setVisible(FALSE); //meaning you hide 3 web browsers - one SLPlugin each | 471 | setVisible(FALSE); //meaning you hide 3 web browsers - one SLPlugin each |
472 | } | ||
473 | else | ||
474 | { | ||
475 | LLFloater::onClose(app_quitting); | ||
476 | } | ||
472 | } | 477 | } |
473 | 478 | ||
474 | // static | 479 | // static |
diff --git a/linden/indra/newview/skins/default/xui/en-us/floater_directory.xml b/linden/indra/newview/skins/default/xui/en-us/floater_directory.xml index 0424b72..1ea4574 100644 --- a/linden/indra/newview/skins/default/xui/en-us/floater_directory.xml +++ b/linden/indra/newview/skins/default/xui/en-us/floater_directory.xml | |||
@@ -726,6 +726,10 @@ To buy direct, visit the land and click on the place name in the title bar. | |||
726 | mouse_opaque="true" name="result_text" v_pad="0" width="328" /> | 726 | mouse_opaque="true" name="result_text" v_pad="0" width="328" /> |
727 | </panel> | 727 | </panel> |
728 | </tab_container> | 728 | </tab_container> |
729 | <check_box name="save_results_check" label="Save search results" | ||
730 | bottom="-37" right="-80" height="16" width="80" | ||
731 | follows="right|top" font="SansSerifSmall" control_name="SaveSearchResults" | ||
732 | initial_value="false" mouse_opaque="true" /> | ||
729 | <panel bottom="-580" follows="right|top" height="490" left="340" | 733 | <panel bottom="-580" follows="right|top" height="490" left="340" |
730 | name="classified_details_panel" width="440" /> | 734 | name="classified_details_panel" width="440" /> |
731 | <panel bottom="-580" follows="right|top" height="506" left="350" name="Panel Avatar" | 735 | <panel bottom="-580" follows="right|top" height="506" left="350" name="Panel Avatar" |