From f5d0b8b92b302e6b1b4b1207c00831c53f5569ae Mon Sep 17 00:00:00 2001 From: Sour Date: Sun, 27 Jan 2019 13:01:54 -0500 Subject: [PATCH] Linux: Fixed tooltips not restoring focus to code window when closing --- GUI.NET/Debugger/CodeTooltipManager.cs | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/GUI.NET/Debugger/CodeTooltipManager.cs b/GUI.NET/Debugger/CodeTooltipManager.cs index 15db3d7e..770f47fe 100644 --- a/GUI.NET/Debugger/CodeTooltipManager.cs +++ b/GUI.NET/Debugger/CodeTooltipManager.cs @@ -46,10 +46,7 @@ namespace Mesen.GUI.Debugger Form parentForm = _owner.FindForm(); if(_hoverLastWord != word || _hoverLastLineAddress != lineAddress || _codeTooltip == null) { - if(_codeTooltip != null) { - _codeTooltip.Close(); - _codeTooltip = null; - } + this.Close(); if(ConfigManager.Config.DebugInfo.ShowOpCodeTooltips && frmOpCodeTooltip.IsOpCode(word)) { _codeTooltip = new frmOpCodeTooltip(parentForm, word, lineAddress);