mirror of
https://github.com/SubtitleEdit/subtitleedit.git
synced 2024-10-28 06:52:35 +01:00
Fixed possible crash in vlc
This commit is contained in:
parent
4cee35079b
commit
185a0f09b1
@ -681,6 +681,9 @@ namespace Nikse.SubtitleEdit.Logic.VideoPlayers
|
|||||||
|
|
||||||
private void MouseTimerTick(object sender, EventArgs e)
|
private void MouseTimerTick(object sender, EventArgs e)
|
||||||
{
|
{
|
||||||
|
if (_mouseTimer == null)
|
||||||
|
return;
|
||||||
|
|
||||||
_mouseTimer.Stop();
|
_mouseTimer.Stop();
|
||||||
if (_parentForm != null && _ownerControl != null && _ownerControl.Visible && _parentForm.ContainsFocus && IsLeftMouseButtonDown())
|
if (_parentForm != null && _ownerControl != null && _ownerControl.Visible && _parentForm.ContainsFocus && IsLeftMouseButtonDown())
|
||||||
{
|
{
|
||||||
@ -700,6 +703,8 @@ namespace Nikse.SubtitleEdit.Logic.VideoPlayers
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
if (_mouseTimer == null)
|
||||||
|
return;
|
||||||
_mouseTimer.Start();
|
_mouseTimer.Start();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user