aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra
diff options
context:
space:
mode:
authorJacek Antonelli2011-05-26 04:13:12 -0500
committerJacek Antonelli2011-05-26 04:13:12 -0500
commit54c87e94732e783314b7abbf60824dba8d00d8cd (patch)
tree8671cffb69bd15aad52c22ed9890f7d27a412658 /linden/indra
parentFixed Linux viewer_manifest.py not running after each build. (diff)
downloadmeta-impy-54c87e94732e783314b7abbf60824dba8d00d8cd.zip
meta-impy-54c87e94732e783314b7abbf60824dba8d00d8cd.tar.gz
meta-impy-54c87e94732e783314b7abbf60824dba8d00d8cd.tar.bz2
meta-impy-54c87e94732e783314b7abbf60824dba8d00d8cd.tar.xz
Better behavior for disabled texture_picker (LLTextureCtrl) widgets.
Before, a disabled texture_picker widget would still open a floater when clicked, change the mouse cursor on hover, and accept drag-and-drops. Now, it actually behaves in a disabled way.
Diffstat (limited to 'linden/indra')
-rw-r--r--linden/indra/newview/lltexturectrl.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/linden/indra/newview/lltexturectrl.cpp b/linden/indra/newview/lltexturectrl.cpp
index ccc3ab2..e58b0b4 100644
--- a/linden/indra/newview/lltexturectrl.cpp
+++ b/linden/indra/newview/lltexturectrl.cpp
@@ -1304,6 +1304,7 @@ public:
1304 1304
1305BOOL LLTextureCtrl::handleHover(S32 x, S32 y, MASK mask) 1305BOOL LLTextureCtrl::handleHover(S32 x, S32 y, MASK mask)
1306{ 1306{
1307 if (!getEnabled()) { return FALSE; }
1307 getWindow()->setCursor(UI_CURSOR_HAND); 1308 getWindow()->setCursor(UI_CURSOR_HAND);
1308 return TRUE; 1309 return TRUE;
1309} 1310}
@@ -1311,6 +1312,7 @@ BOOL LLTextureCtrl::handleHover(S32 x, S32 y, MASK mask)
1311 1312
1312BOOL LLTextureCtrl::handleMouseDown(S32 x, S32 y, MASK mask) 1313BOOL LLTextureCtrl::handleMouseDown(S32 x, S32 y, MASK mask)
1313{ 1314{
1315 if (!getEnabled()) { return FALSE; }
1314 BOOL handled = LLUICtrl::handleMouseDown( x, y , mask ); 1316 BOOL handled = LLUICtrl::handleMouseDown( x, y , mask );
1315 if( handled ) 1317 if( handled )
1316 { 1318 {
@@ -1421,6 +1423,8 @@ BOOL LLTextureCtrl::handleDragAndDrop(S32 x, S32 y, MASK mask,
1421 EAcceptance *accept, 1423 EAcceptance *accept,
1422 std::string& tooltip_msg) 1424 std::string& tooltip_msg)
1423{ 1425{
1426 if (!getEnabled()) { return FALSE; }
1427
1424 BOOL handled = FALSE; 1428 BOOL handled = FALSE;
1425 1429
1426 // this downcast may be invalid - but if the second test below 1430 // this downcast may be invalid - but if the second test below