diff options
author | Dave Simmons <simon@lindenlab.com> | 2009-03-20 20:00:47 +0000 |
---|---|---|
committer | Dave Simmons <simon@lindenlab.com> | 2009-03-20 20:00:47 +0000 |
commit | 24b26d71ee01211aa796b8061b66ec06a133e4ce (patch) | |
tree | 96bffcd019c933ad3ebbfd5f096968108b22aab5 /indra/newview/llpanelclassified.cpp | |
parent | 5dfd435872e36445dcc82f99443dfc5a7ee0805a (diff) |
svn merge -r113004:115000 svn+ssh://svn.lindenlab.com/svn/linden/branches/server/server-1.26
Merge latest 1.26 into trunk
Diffstat (limited to 'indra/newview/llpanelclassified.cpp')
-rw-r--r-- | indra/newview/llpanelclassified.cpp | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/indra/newview/llpanelclassified.cpp b/indra/newview/llpanelclassified.cpp index 0c60357dfb..e6639a2da5 100644 --- a/indra/newview/llpanelclassified.cpp +++ b/indra/newview/llpanelclassified.cpp @@ -223,6 +223,7 @@ void LLPanelClassified::reset() mPosGlobal.clearVec(); clearCtrls(); + resetDirty(); } @@ -285,7 +286,7 @@ BOOL LLPanelClassified::postBuild() mMatureCombo->setCurrentByIndex(0); mMatureCombo->setCommitCallback(onCommitAny); mMatureCombo->setCallbackUserData(this); - if (gAgent.isTeen()) + if (gAgent.wantsPGOnly()) { // Teens don't get to set mature flag. JC mMatureCombo->setVisible(FALSE); @@ -308,6 +309,7 @@ BOOL LLPanelClassified::postBuild() mClickThroughText = getChild<LLTextBox>("click_through_text"); } + resetDirty(); return TRUE; } @@ -540,7 +542,10 @@ void LLPanelClassified::sendClassifiedInfoUpdate() { auto_renew = mAutoRenewCheck->get(); } - U8 flags = pack_classified_flags(mature, auto_renew); + // These flags doesn't matter here. + const bool adult_enabled = false; + const bool is_pg = false; + U8 flags = pack_classified_flags_request(auto_renew, is_pg, mature, adult_enabled); msg->addU8Fast(_PREHASH_ClassifiedFlags, flags); msg->addS32("PriceForListing", mPriceForListing); gAgent.sendReliableMessage(); @@ -678,6 +683,7 @@ void LLPanelClassified::processClassifiedInfoReply(LLMessageSystem *msg, void ** self->resetDirty(); + // I don't know if a second call is deliberate or a bad merge, so I'm leaving it here. self->resetDirty(); } } |