diff options
author | Dmitry Zaporozhan <dzaporozhan@productengine.com> | 2009-11-10 17:00:29 +0200 |
---|---|---|
committer | Dmitry Zaporozhan <dzaporozhan@productengine.com> | 2009-11-10 17:00:29 +0200 |
commit | 107525aa5a82b1cd4b2152e498d93d5db6577a15 (patch) | |
tree | a4d54d5a1f2fbe11abbf380a27cf92ecf53e6e8c /indra/newview/llpanelpicks.cpp | |
parent | d04539f74a2922db40a6f90f16929b29056f666b (diff) |
Update for major task EXT-2251 - Implement panels for creating, editing and viewing Classifieds.
Fixed bugs, cleared code.
--HG--
branch : product-engine
Diffstat (limited to 'indra/newview/llpanelpicks.cpp')
-rw-r--r-- | indra/newview/llpanelpicks.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/indra/newview/llpanelpicks.cpp b/indra/newview/llpanelpicks.cpp index 2129fe473a..0fededcc46 100644 --- a/indra/newview/llpanelpicks.cpp +++ b/indra/newview/llpanelpicks.cpp @@ -686,7 +686,7 @@ void LLPanelPicks::onPanelPickSave(LLPanel* panel) void LLPanelPicks::onPanelClassifiedSave(LLPanelClassifiedEdit* panel) { - if(panel->isNewClassified()) + if(panel->isNew()) { LLClassifiedItem* c_item = new LLClassifiedItem(getAvatarId(), panel->getClassifiedId()); @@ -716,7 +716,7 @@ void LLPanelPicks::onPanelClassifiedSave(LLPanelClassifiedEdit* panel) void LLPanelPicks::onPanelClassifiedClose(LLPanelClassifiedInfo* panel) { - if(panel->getInfoLoaded()) + if(panel->getInfoLoaded() && !panel->isDirty()) { std::vector<LLSD> values; mClassifiedsList->getValues(values); |