Linux: Fixed crash with debugger code tooltips when the window is manually closed by the user (e.g alt-f4)

This commit is contained in:
Sour 2018-06-09 22:28:26 -04:00
parent 7f95659d7d
commit 48ae000ec9

View file

@ -190,6 +190,7 @@ namespace Mesen.GUI.Debugger.Controls
Point p = this.PointToScreen(new Point(this.ClientRectangle.Right, e.Y));
if(_codeTooltip == null) {
_codeTooltip = this.ColorProvider.GetPreview(scrollPosition);
_codeTooltip.FormClosed += (s, evt) => { _codeTooltip = null; };
} else {
_codeTooltip.ScrollToLineIndex(scrollPosition);
}