summaryrefslogtreecommitdiff
path: root/indra/newview/llfloatermarketplacelistings.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'indra/newview/llfloatermarketplacelistings.cpp')
-rwxr-xr-xindra/newview/llfloatermarketplacelistings.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/indra/newview/llfloatermarketplacelistings.cpp b/indra/newview/llfloatermarketplacelistings.cpp
index c732c8b2ce..942279b0f1 100755
--- a/indra/newview/llfloatermarketplacelistings.cpp
+++ b/indra/newview/llfloatermarketplacelistings.cpp
@@ -569,6 +569,7 @@ BOOL LLFloaterAssociateListing::postBuild()
{
getChild<LLButton>("OK")->setCommitCallback(boost::bind(&LLFloaterAssociateListing::apply, this, TRUE));
getChild<LLButton>("Cancel")->setCommitCallback(boost::bind(&LLFloaterAssociateListing::cancel, this));
+ getChild<LLLineEditor>("listing_id")->setPrevalidate(&LLTextValidate::validatePositiveS32);
center();
return LLFloater::postBuild();
@@ -632,6 +633,10 @@ void LLFloaterAssociateListing::apply(BOOL user_confirm)
update_marketplace_category(listing_uuid);
update_marketplace_category(mUUID);
}
+ else
+ {
+ LLNotificationsUtil::add("AlertMerchantListingInvalidID");
+ }
}
closeFloater();
}