Prevent tooltip counter going up on hyperlink click.

This commit is contained in:
rkfg 2016-03-05 01:03:39 +03:00
parent 63ca80fc86
commit 1ff8e42222

View file

@ -58,7 +58,8 @@ public class ColorPane extends JEditorPane {
final Component container = MageFrame.getUI().getComponent(MageComponents.POPUP_CONTAINER); final Component container = MageFrame.getUI().getComponent(MageComponents.POPUP_CONTAINER);
if (e.getEventType() == EventType.EXITED) { if (e.getEventType() == EventType.EXITED) {
setPopupVisibility(null, container, false); setPopupVisibility(null, container, false);
} else { }
if (e.getEventType() == EventType.ENTERED) {
CardInfoPane cardInfoPane = (CardInfoPane) MageFrame.getUI().getComponent(MageComponents.CARD_INFO_PANE); CardInfoPane cardInfoPane = (CardInfoPane) MageFrame.getUI().getComponent(MageComponents.CARD_INFO_PANE);
cardInfoPane.setCard(new CardView(card.getMockCard()), container); cardInfoPane.setCard(new CardView(card.getMockCard()), container);
Point mousePosition = MageFrame.getDesktop().getMousePosition(); Point mousePosition = MageFrame.getDesktop().getMousePosition();