mirror of
https://github.com/beefytech/Beef.git
synced 2025-06-09 03:52:19 +02:00
Null guard
This commit is contained in:
parent
41485f4106
commit
efa9566f88
1 changed files with 2 additions and 0 deletions
|
@ -347,6 +347,8 @@ namespace Beefy.widgets
|
||||||
|
|
||||||
public virtual void CaptureMouse()
|
public virtual void CaptureMouse()
|
||||||
{
|
{
|
||||||
|
if (mWidgetWindow == null)
|
||||||
|
return;
|
||||||
//Debug.WriteLine("CaptureMouse {0}", this);
|
//Debug.WriteLine("CaptureMouse {0}", this);
|
||||||
if (mWidgetWindow.mHasFocus)
|
if (mWidgetWindow.mHasFocus)
|
||||||
mWidgetWindow.mCaptureWidget = this;
|
mWidgetWindow.mCaptureWidget = this;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue