summaryrefslogtreecommitdiff
path: root/indra/newview/llpanelprofileclassifieds.cpp
diff options
context:
space:
mode:
authormaxim_productengine <mnikolenko@productengine.com>2019-07-16 13:43:39 +0300
committermaxim_productengine <mnikolenko@productengine.com>2019-07-16 13:43:39 +0300
commit59a8f73725a23e748d9f54e033735535e617dce7 (patch)
tree2e0197932f4e995b6268f0972992c6b2c9bf62b8 /indra/newview/llpanelprofileclassifieds.cpp
parent8ba2b01de24f4ff7e067d5e0fc995cc4ab7fb9d5 (diff)
SL-11594 FIXED [Viewer Profile Project] 'OK' button does not save changes at 'Profile' - 'Classifieds' tab
Diffstat (limited to 'indra/newview/llpanelprofileclassifieds.cpp')
-rw-r--r--indra/newview/llpanelprofileclassifieds.cpp15
1 files changed, 14 insertions, 1 deletions
diff --git a/indra/newview/llpanelprofileclassifieds.cpp b/indra/newview/llpanelprofileclassifieds.cpp
index 3a5347018d..225aca406e 100644
--- a/indra/newview/llpanelprofileclassifieds.cpp
+++ b/indra/newview/llpanelprofileclassifieds.cpp
@@ -356,7 +356,20 @@ bool LLPanelProfileClassifieds::canDeleteClassified()
return (mTabContainer->getTabCount() > 0);
}
-
+void LLPanelProfileClassifieds::apply()
+{
+ if (getIsLoaded())
+ {
+ for (S32 tab_idx = 0; tab_idx < mTabContainer->getTabCount(); ++tab_idx)
+ {
+ LLPanelProfileClassified* classified_panel = dynamic_cast<LLPanelProfileClassified*>(mTabContainer->getPanelByIndex(tab_idx));
+ if (classified_panel && classified_panel->isDirty())
+ {
+ classified_panel->doSave();
+ }
+ }
+ }
+}
//-----------------------------------------------------------------------------
// LLDispatchClassifiedClickThrough
//-----------------------------------------------------------------------------