diff options
author | maxim_productengine <mnikolenko@productengine.com> | 2019-07-16 13:43:39 +0300 |
---|---|---|
committer | maxim_productengine <mnikolenko@productengine.com> | 2019-07-16 13:43:39 +0300 |
commit | 59a8f73725a23e748d9f54e033735535e617dce7 (patch) | |
tree | 2e0197932f4e995b6268f0972992c6b2c9bf62b8 /indra | |
parent | 8ba2b01de24f4ff7e067d5e0fc995cc4ab7fb9d5 (diff) |
SL-11594 FIXED [Viewer Profile Project] 'OK' button does not save changes at 'Profile' - 'Classifieds' tab
Diffstat (limited to 'indra')
-rw-r--r-- | indra/newview/llpanelprofile.cpp | 1 | ||||
-rw-r--r-- | indra/newview/llpanelprofileclassifieds.cpp | 15 | ||||
-rw-r--r-- | indra/newview/llpanelprofileclassifieds.h | 6 | ||||
-rw-r--r-- | indra/newview/skins/default/xui/en/panel_profile_classified.xml | 1 |
4 files changed, 20 insertions, 3 deletions
diff --git a/indra/newview/llpanelprofile.cpp b/indra/newview/llpanelprofile.cpp index 2c07ff576d..1b3462176e 100644 --- a/indra/newview/llpanelprofile.cpp +++ b/indra/newview/llpanelprofile.cpp @@ -1591,6 +1591,7 @@ void LLPanelProfile::apply() mPanelInterests->apply(); mPanelPicks->apply(); mPanelNotes->apply(); + mPanelClassifieds->apply(); //KC - Classifieds handles this itself } 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 //----------------------------------------------------------------------------- diff --git a/indra/newview/llpanelprofileclassifieds.h b/indra/newview/llpanelprofileclassifieds.h index 9bf9ff4a6b..53ee41cf04 100644 --- a/indra/newview/llpanelprofileclassifieds.h +++ b/indra/newview/llpanelprofileclassifieds.h @@ -88,6 +88,8 @@ public: /*virtual*/ void updateData(); + /*virtual*/ void apply(); + private: void onClickNewBtn(); void onClickDelete(); @@ -203,6 +205,8 @@ public: const LLVector3d& global_pos, const std::string& sim_name); + void doSave(); + protected: /*virtual*/ void resetData(); @@ -248,8 +252,6 @@ protected: void onSetLocationClick(); void onChange(); - void doSave(); - void onPublishFloaterPublishClicked(); void onTexturePickerMouseEnter(); diff --git a/indra/newview/skins/default/xui/en/panel_profile_classified.xml b/indra/newview/skins/default/xui/en/panel_profile_classified.xml index 6a0489ae97..7f0f86d524 100644 --- a/indra/newview/skins/default/xui/en/panel_profile_classified.xml +++ b/indra/newview/skins/default/xui/en/panel_profile_classified.xml @@ -464,6 +464,7 @@ font="SansSerif" max_length_bytes="30" prevalidate_callback="ascii" + commit_on_focus_lost="false" text_color="black" /> <text |