diff options
Diffstat (limited to 'linden/indra/newview/lltexturectrl.cpp')
-rw-r--r-- | linden/indra/newview/lltexturectrl.cpp | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/linden/indra/newview/lltexturectrl.cpp b/linden/indra/newview/lltexturectrl.cpp index b961053..706587a 100644 --- a/linden/indra/newview/lltexturectrl.cpp +++ b/linden/indra/newview/lltexturectrl.cpp | |||
@@ -1037,19 +1037,21 @@ void LLTextureCtrl::setVisible( BOOL visible ) | |||
1037 | 1037 | ||
1038 | void LLTextureCtrl::setEnabled( BOOL enabled ) | 1038 | void LLTextureCtrl::setEnabled( BOOL enabled ) |
1039 | { | 1039 | { |
1040 | LLFloaterTexturePicker* floaterp = (LLFloaterTexturePicker*)LLFloater::getFloaterByHandle(mFloaterHandle); | ||
1040 | if( enabled ) | 1041 | if( enabled ) |
1041 | { | 1042 | { |
1042 | setToolTip( "Click to choose a picture" ); | 1043 | LLString tooltip; |
1044 | if (floaterp) tooltip = floaterp->getUIString("choose_picture"); | ||
1045 | setToolTip( tooltip ); | ||
1043 | } | 1046 | } |
1044 | else | 1047 | else |
1045 | { | 1048 | { |
1046 | setToolTip( "" ); | 1049 | setToolTip( LLString() ); |
1047 | // *TODO: would be better to keep floater open and show | 1050 | // *TODO: would be better to keep floater open and show |
1048 | // disabled state. | 1051 | // disabled state. |
1049 | closeFloater(); | 1052 | closeFloater(); |
1050 | } | 1053 | } |
1051 | 1054 | ||
1052 | LLFloaterTexturePicker* floaterp = (LLFloaterTexturePicker*)LLFloater::getFloaterByHandle(mFloaterHandle); | ||
1053 | if( floaterp ) | 1055 | if( floaterp ) |
1054 | { | 1056 | { |
1055 | floaterp->setActive(enabled); | 1057 | floaterp->setActive(enabled); |