PL-7660 DesktopToolTipManager reuses popup window after it was returned to cache

(cherry picked from commit 58c0fb3)
This commit is contained in:
Maxim Stepanov 2016-08-03 14:16:28 +04:00
parent 634202ea10
commit f04b21c95a

View File

@ -69,6 +69,7 @@ public class DesktopToolTipManager extends MouseAdapter {
@Override
public void actionPerformed(ActionEvent e) {
window.hide();
window = null;
tooltipShowing = false;
toolTipWindow.removeMouseListener(DesktopToolTipManager.this);
component.removeMouseListener(DesktopToolTipManager.this);
@ -158,6 +159,7 @@ public class DesktopToolTipManager extends MouseAdapter {
closeTimer.stop();
if (window != null) {
window.hide();
window = null;
tooltipShowing = false;
toolTipWindow.removeMouseListener(DesktopToolTipManager.this);
component.removeMouseListener(DesktopToolTipManager.this);