diff --git a/indra/llui/lltoolbar.cpp b/indra/llui/lltoolbar.cpp
index 4d88c37fda88cc59cb045a13560032310e0fd066..278e7826b752f817c1fb63f1939ba82a6fb4de0c 100644
--- a/indra/llui/lltoolbar.cpp
+++ b/indra/llui/lltoolbar.cpp
@@ -690,7 +690,7 @@ void LLToolBar::draw()
 
 			if (command && btn->mIsEnabledSignal)
 			{
-				const bool button_command_enabled = (*btn->mIsEnabledSignal)(btn, command->isEnabledParameters());
+				//const bool button_command_enabled = (*btn->mIsEnabledSignal)(btn, command->isEnabledParameters());
 				// TODO: make button appear disabled but have it still respond to drag and drop
 				btn->setEnabled(false);//button_command_enabled);
 			}