Automated merge with ssh://bitbucket.org/callum_linden/viewer64-xcode8
commit
275d2e7e02
|
|
@ -3,6 +3,7 @@
|
|||
project(llui)
|
||||
|
||||
include(00-Common)
|
||||
include(Hunspell)
|
||||
include(LLCommon)
|
||||
include(LLImage)
|
||||
include(LLInventory)
|
||||
|
|
@ -294,7 +295,11 @@ if(LL_TESTS)
|
|||
)
|
||||
LL_ADD_PROJECT_UNIT_TESTS(llui "${llui_TEST_SOURCE_FILES}")
|
||||
# INTEGRATION TESTS
|
||||
set(test_libs llui llmessage llcorehttp llcommon ${LLCOMMON_LIBRARIES} ${BOOST_COROUTINE_LIBRARY} ${BOOST_CONTEXT_LIBRARY} ${BOOST_SYSTEM_LIBRARY} ${WINDOWS_LIBRARIES})
|
||||
set(test_libs llui llmessage llcorehttp llcommon
|
||||
${HUNSPELL_LIBRARY}
|
||||
${LLCOMMON_LIBRARIES}
|
||||
${BOOST_COROUTINE_LIBRARY} ${BOOST_CONTEXT_LIBRARY} ${BOOST_SYSTEM_LIBRARY}
|
||||
${WINDOWS_LIBRARIES})
|
||||
if(NOT LINUX)
|
||||
LL_ADD_INTEGRATION_TEST(llurlentry llurlentry.cpp "${test_libs}")
|
||||
endif(NOT LINUX)
|
||||
|
|
|
|||
|
|
@ -64,8 +64,6 @@
|
|||
// use this to control "jumping" behavior when Ctrl-Tabbing
|
||||
const S32 TABBED_FLOATER_OFFSET = 0;
|
||||
|
||||
extern LLControlGroup gSavedSettings;
|
||||
|
||||
namespace LLInitParam
|
||||
{
|
||||
void TypeValues<LLFloaterEnums::EOpenPositioning>::declareValues()
|
||||
|
|
@ -653,13 +651,22 @@ void LLFloater::openFloater(const LLSD& key)
|
|||
&& !getFloaterHost()
|
||||
&& (!getVisible() || isMinimized()))
|
||||
{
|
||||
//Don't play a sound for incoming voice call based upon chat preference setting
|
||||
bool playSound = !(getName() == "incoming call" && gSavedSettings.getBOOL("PlaySoundIncomingVoiceCall") == FALSE);
|
||||
// gSavedSettings is a global instance of LLControlGroup, but since
|
||||
// LLControlGroup is derived from LLInstanceTracker, we can also look
|
||||
// it up by name.
|
||||
LLControlGroup* gSavedSettingsp = LLControlGroup::getInstance("Global");
|
||||
//Play a sound for incoming voice call based upon chat preference setting.
|
||||
//If it's not an incoming call, play it anyway.
|
||||
//If we can't find gSavedSettings, play it anyway.
|
||||
//If the setting is ON, play it anyway.
|
||||
bool playSound = (getName() != "incoming call" ||
|
||||
(! gSavedSettingsp) ||
|
||||
gSavedSettingsp->getBOOL("PlaySoundIncomingVoiceCall"));
|
||||
|
||||
if(playSound)
|
||||
{
|
||||
make_ui_sound("UISndWindowOpen");
|
||||
}
|
||||
if(playSound)
|
||||
{
|
||||
make_ui_sound("UISndWindowOpen");
|
||||
}
|
||||
}
|
||||
|
||||
//RN: for now, we don't allow rehosting from one multifloater to another
|
||||
|
|
|
|||
|
|
@ -28,7 +28,7 @@
|
|||
#include "linden_common.h"
|
||||
#include "../llurlentry.h"
|
||||
#include "../lluictrl.h"
|
||||
#include "llurlentry_stub.cpp"
|
||||
//#include "llurlentry_stub.cpp"
|
||||
#include "lltut.h"
|
||||
#include "../lluicolortable.h"
|
||||
#include "../llrender/lluiimage.h"
|
||||
|
|
@ -49,6 +49,7 @@
|
|||
//
|
||||
// }
|
||||
|
||||
/*==========================================================================*|
|
||||
typedef std::map<std::string, LLControlGroup*> settings_map_t;
|
||||
settings_map_t LLUI::sSettingGroups;
|
||||
|
||||
|
|
@ -83,6 +84,7 @@ S32 LLUIImage::getHeight() const
|
|||
{
|
||||
return 0;
|
||||
}
|
||||
|*==========================================================================*/
|
||||
|
||||
namespace tut
|
||||
{
|
||||
|
|
|
|||
Loading…
Reference in New Issue