Some work on clearDirtyFlag and fix a unit test.
parent
99f855e550
commit
d62079002d
|
|
@ -442,6 +442,21 @@ void LLFloaterFixedEnvironment::onInventoryUpdated(LLUUID asset_id, LLUUID inven
|
|||
}
|
||||
|
||||
|
||||
void LLFloaterFixedEnvironment::clearDirtyFlag()
|
||||
{
|
||||
mIsDirty = false;
|
||||
|
||||
S32 count = mTab->getTabCount();
|
||||
|
||||
for (S32 idx = 0; idx < count; ++idx)
|
||||
{
|
||||
LLSettingsEditPanel *panel = static_cast<LLSettingsEditPanel *>(mTab->getPanelByIndex(idx));
|
||||
if (panel)
|
||||
panel->clearIsDirty();
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
void LLFloaterFixedEnvironment::doSelectFromInventory()
|
||||
{
|
||||
LLFloaterSettingsPicker *picker = getSettingsPicker();
|
||||
|
|
|
|||
|
|
@ -103,7 +103,7 @@ protected:
|
|||
|
||||
bool getIsDirty() const { return mIsDirty; }
|
||||
void setDirtyFlag() { mIsDirty = true; }
|
||||
virtual void clearDirtyFlag() { mIsDirty = false; }
|
||||
virtual void clearDirtyFlag();
|
||||
|
||||
void doSelectFromInventory();
|
||||
void onPanelDirtyFlagChanged(bool);
|
||||
|
|
|
|||
|
|
@ -258,7 +258,7 @@ namespace tut
|
|||
std::string("https://login.aditi.lindenlab.com/cgi-bin/login.cgi"));
|
||||
ensure_equals("Aditi helper uri",
|
||||
LLGridManager::getInstance()->getHelperURI("util.aditi.lindenlab.com"),
|
||||
std::string("http://aditi-secondlife.webdev.lindenlab.com/helpers/"));
|
||||
std::string("https://aditi-secondlife.webdev.lindenlab.com/helpers/"));
|
||||
ensure_equals("Aditi login page",
|
||||
LLGridManager::getInstance()->getLoginPage("util.aditi.lindenlab.com"),
|
||||
std::string("https://viewer-splash.secondlife.com/"));
|
||||
|
|
@ -330,7 +330,7 @@ namespace tut
|
|||
std::string("https://login.aditi.lindenlab.com/cgi-bin/login.cgi"));
|
||||
ensure_equals("Aditi helper uri",
|
||||
LLGridManager::getInstance()->getHelperURI("util.aditi.lindenlab.com"),
|
||||
std::string("http://aditi-secondlife.webdev.lindenlab.com/helpers/"));
|
||||
std::string("https://aditi-secondlife.webdev.lindenlab.com/helpers/"));
|
||||
ensure_equals("Aditi login page",
|
||||
LLGridManager::getInstance()->getLoginPage("util.aditi.lindenlab.com"),
|
||||
std::string("https://viewer-splash.secondlife.com/"));
|
||||
|
|
|
|||
Loading…
Reference in New Issue