aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra/newview/lltexturectrl.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'linden/indra/newview/lltexturectrl.cpp')
-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