mirror of https://github.com/odrling/Aegisub
Fix potential crash clicking AudioKaraoke
Originally committed to SVN as r818.
This commit is contained in:
parent
ee3238a657
commit
2b27078cf4
|
@ -443,11 +443,12 @@ void AudioKaraoke::OnMouse(wxMouseEvent &event) {
|
|||
Refresh(false);
|
||||
}
|
||||
// Released left button
|
||||
else if (event.LeftUp()) {
|
||||
else if (event.LeftUp() && HasCapture()) {
|
||||
ReleaseMouse();
|
||||
}
|
||||
// Released right button; make a menu for selecting \k type
|
||||
else if (event.RightUp()) {
|
||||
if (HasCapture())
|
||||
ReleaseMouse();
|
||||
|
||||
AudioKaraokeTagMenu menu(this);
|
||||
|
|
Loading…
Reference in New Issue