[fixes #1088] Trigger select after new/copy motor config
This commit is contained in:
		
							parent
							
								
									4332732ade
								
							
						
					
					
						commit
						42a0e4b389
					
				@ -81,6 +81,7 @@ public class FlightConfigurationPanel extends JPanel implements StateChangeListe
 | 
				
			|||||||
				motorConfigurationPanel.table.setRowSelectionInterval(lastRow, lastRow);
 | 
									motorConfigurationPanel.table.setRowSelectionInterval(lastRow, lastRow);
 | 
				
			||||||
				motorConfigurationPanel.table.setColumnSelectionInterval(lastCol, lastCol);
 | 
									motorConfigurationPanel.table.setColumnSelectionInterval(lastCol, lastCol);
 | 
				
			||||||
				configurationChanged(ComponentChangeEvent.MOTOR_CHANGE);
 | 
									configurationChanged(ComponentChangeEvent.MOTOR_CHANGE);
 | 
				
			||||||
 | 
									configurationChanged(ComponentChangeEvent.NONFUNCTIONAL_CHANGE);	// Trigger select
 | 
				
			||||||
			}
 | 
								}
 | 
				
			||||||
			
 | 
								
 | 
				
			||||||
		});
 | 
							});
 | 
				
			||||||
@ -113,6 +114,7 @@ public class FlightConfigurationPanel extends JPanel implements StateChangeListe
 | 
				
			|||||||
			public void actionPerformed(ActionEvent e) {
 | 
								public void actionPerformed(ActionEvent e) {
 | 
				
			||||||
				addOrCopyConfiguration(true);
 | 
									addOrCopyConfiguration(true);
 | 
				
			||||||
				configurationChanged(ComponentChangeEvent.MOTOR_CHANGE);
 | 
									configurationChanged(ComponentChangeEvent.MOTOR_CHANGE);
 | 
				
			||||||
 | 
									configurationChanged(ComponentChangeEvent.NONFUNCTIONAL_CHANGE);	// Trigger select
 | 
				
			||||||
			}
 | 
								}
 | 
				
			||||||
		});
 | 
							});
 | 
				
			||||||
		this.add(copyConfButton, "wrap");
 | 
							this.add(copyConfButton, "wrap");
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user