Solve Issue 1944 by allowing classified fees >= 0 on opensim
Opensim really needs to broadcast minimum classified fee... Meh, guess they'll have to enforce that on the server...
This commit is contained in:
@@ -773,7 +773,8 @@ void LLPanelClassifiedInfo::gotMature()
|
|||||||
void LLPanelClassifiedInfo::callbackGotPriceForListing(const std::string& text)
|
void LLPanelClassifiedInfo::callbackGotPriceForListing(const std::string& text)
|
||||||
{
|
{
|
||||||
S32 price_for_listing = strtol(text.c_str(), NULL, 10);
|
S32 price_for_listing = strtol(text.c_str(), NULL, 10);
|
||||||
if (price_for_listing < MINIMUM_PRICE_FOR_LISTING)
|
const HippoGridInfo& grid(*gHippoGridManager->getConnectedGrid());
|
||||||
|
if (grid.isSecondLife() && price_for_listing < MINIMUM_PRICE_FOR_LISTING)
|
||||||
{
|
{
|
||||||
LLSD args;
|
LLSD args;
|
||||||
args["MIN_PRICE"] = llformat("%d", MINIMUM_PRICE_FOR_LISTING);
|
args["MIN_PRICE"] = llformat("%d", MINIMUM_PRICE_FOR_LISTING);
|
||||||
@@ -787,7 +788,7 @@ void LLPanelClassifiedInfo::callbackGotPriceForListing(const std::string& text)
|
|||||||
|
|
||||||
LLSD args;
|
LLSD args;
|
||||||
args["AMOUNT"] = llformat("%d", price_for_listing);
|
args["AMOUNT"] = llformat("%d", price_for_listing);
|
||||||
args["CURRENCY"] = gHippoGridManager->getConnectedGrid()->getCurrencySymbol();
|
args["CURRENCY"] = grid.getCurrencySymbol();
|
||||||
LLNotificationsUtil::add("PublishClassified", args, LLSD(),
|
LLNotificationsUtil::add("PublishClassified", args, LLSD(),
|
||||||
boost::bind(&LLPanelClassifiedInfo::confirmPublish, this, _1, _2));
|
boost::bind(&LLPanelClassifiedInfo::confirmPublish, this, _1, _2));
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user