UI: Add null checks before doing some API calls
Harmless, but generated a debug warning for null pointers passed into the API.
This commit is contained in:
parent
51e3bd5e3d
commit
f9f4171d56
3 changed files with 4 additions and 3 deletions
|
|
@ -654,7 +654,7 @@ void OBSBasicPreview::mousePressEvent(QMouseEvent *event)
|
|||
|
||||
void OBSBasicPreview::UpdateCursor(uint32_t &flags)
|
||||
{
|
||||
if (obs_sceneitem_locked(stretchItem)) {
|
||||
if (!stretchItem || obs_sceneitem_locked(stretchItem)) {
|
||||
unsetCursor();
|
||||
return;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue