Fix issue with click not being enable when an input was empty in nodes input panel.

This commit is contained in:
Holt59 2018-03-06 11:57:34 +01:00
parent e5d1b30cfd
commit f1d74d8040

View File

@ -248,6 +248,9 @@ public class NodesInputPanel extends JPanel
}
else if (tracker != null) {
tracker.setVisible(false);
if (getInputToFill() == null) {
nextInputToFill();
}
}
// Create array of nodes
@ -399,7 +402,8 @@ public class NodesInputPanel extends JPanel
for (JTextField input: nodeInputs) {
MarkerOverlay tracker = markerTrackers.getOrDefault(input, null);
if (tracker != null) {
MarkerOverlay newMarker = this.drawing.drawMarker(tracker.getPoint(), tracker.getColor());
MarkerOverlay newMarker = this.drawing.drawMarker(tracker.getPoint(),
tracker.getColor());
markerTrackers.put(input, newMarker);
newMarker.setVisible(tracker.isVisible());
tracker.delete();