diff options
| author | Don Kjer <don@lindenlab.com> | 2011-02-19 02:21:51 +0000 | 
|---|---|---|
| committer | Don Kjer <don@lindenlab.com> | 2011-02-19 02:21:51 +0000 | 
| commit | b5e843abb59ac32cb8cd85dc4b1a43f2bb5c22ee (patch) | |
| tree | 9d6046422e42cd4177b7787df4a3705ebb61b495 | |
| parent | 64ea40066f16920a82c4396ac38d83bb6701f70d (diff) | |
Fix for more instances of dereferencing gKeyboard in headless client.
| -rw-r--r-- | indra/newview/llviewerwindow.cpp | 16 | 
1 files changed, 14 insertions, 2 deletions
| diff --git a/indra/newview/llviewerwindow.cpp b/indra/newview/llviewerwindow.cpp index 336915ac8c..2d6fabf611 100644 --- a/indra/newview/llviewerwindow.cpp +++ b/indra/newview/llviewerwindow.cpp @@ -2973,7 +2973,13 @@ void LLViewerWindow::updateLayout()  			}  			// Update the location of the blue box tool popup  			LLCoordGL select_center_screen; -			gFloaterTools->updatePopup( select_center_screen, gKeyboard->currentMask(TRUE) ); +			MASK	mask = MASK_NONE; +			// *TODO: Create a headless gKeyboard DK 2011-02-18 +			if (gKeyboard) +			{ +				mask = gKeyboard->currentMask(TRUE); +			} +			gFloaterTools->updatePopup( select_center_screen, mask );  		}  		else  		{ @@ -3099,7 +3105,13 @@ void LLViewerWindow::updateKeyboardFocus()  		// sync all floaters with their focus state  		gFloaterView->highlightFocusedFloater();  		gSnapshotFloaterView->highlightFocusedFloater(); -		if ((gKeyboard->currentMask(TRUE) & MASK_CONTROL) == 0) +		MASK	mask = MASK_NONE; +		// *TODO: Create a headless gKeyboard DK 2011-02-18 +		if (gKeyboard) +		{ +			mask = gKeyboard->currentMask(TRUE); +		} +		if ((mask & MASK_CONTROL) == 0)  		{  			// control key no longer held down, finish cycle mode  			gFloaterView->setCycleMode(FALSE); | 
