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:
parent
7f95659d7d
commit
48ae000ec9
1 changed files with 1 additions and 0 deletions
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue