diff options
-rwxr-xr-x | indra/newview/llfloatermarketplacelistings.cpp | 5 | ||||
-rwxr-xr-x | indra/newview/skins/default/xui/en/notifications.xml | 8 |
2 files changed, 13 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(); } diff --git a/indra/newview/skins/default/xui/en/notifications.xml b/indra/newview/skins/default/xui/en/notifications.xml index 70f3f86102..06aafe45e4 100755 --- a/indra/newview/skins/default/xui/en/notifications.xml +++ b/indra/newview/skins/default/xui/en/notifications.xml @@ -414,6 +414,14 @@ This listing could not be updated. </notification> <notification + icon="alertmodal.tga" + name="AlertMerchantListingInvalidID" + type="alertmodal"> + Invalid listing ID. + <tag>fail</tag> + </notification> + + <notification icon="alertmodal.tga" name="CompileQueueSaveText" type="alertmodal"> |