diff options
| author | Oz Linden <oz@lindenlab.com> | 2013-07-02 17:08:46 -0400 |
|---|---|---|
| committer | Oz Linden <oz@lindenlab.com> | 2013-07-02 17:08:46 -0400 |
| commit | 36634bf50f18038c2a343c786e8b22384a501eae (patch) | |
| tree | 2baa639b76f2b578bac1ac3cc3221ff9326bd04c /indra/newview/lltexturectrl.cpp | |
| parent | 9c8fdf5a49145f4147f50c16c4e1775386976798 (diff) | |
| parent | 4f2c25979488733bcf92bc2f6ec357618c3e9632 (diff) | |
merge changes for latest integration changes
Diffstat (limited to 'indra/newview/lltexturectrl.cpp')
| -rwxr-xr-x | indra/newview/lltexturectrl.cpp | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/indra/newview/lltexturectrl.cpp b/indra/newview/lltexturectrl.cpp index 4676f7b251..2b1ed5858a 100755 --- a/indra/newview/lltexturectrl.cpp +++ b/indra/newview/lltexturectrl.cpp @@ -133,7 +133,8 @@ public: PermissionMask getFilterPermMask(); void updateFilterPermMask(); void commitIfImmediateSet(); - + void commitCancel(); + void onFilterEdit(const std::string& search_string ); void setCanApply(bool can_preview, bool can_apply); @@ -706,6 +707,14 @@ void LLFloaterTexturePicker::commitIfImmediateSet() } } +void LLFloaterTexturePicker::commitCancel() +{ + if (!mNoCopyTextureSelected && mOwner && mCanApply) + { + mOwner->onFloaterCommit(LLTextureCtrl::TEXTURE_CANCEL); + } +} + // static void LLFloaterTexturePicker::onBtnSetToDefault(void* userdata) { @@ -733,7 +742,7 @@ void LLFloaterTexturePicker::onBtnNone(void* userdata) { LLFloaterTexturePicker* self = (LLFloaterTexturePicker*) userdata; self->setImageID( LLUUID::null ); - self->commitIfImmediateSet(); + self->commitCancel(); } /* |
