[#1813] Update previous selection on sim addition/deletion
This commit is contained in:
parent
f723508491
commit
79a2b32d63
@ -275,6 +275,7 @@ public class SimulationPanel extends JPanel {
|
|||||||
simulationTableModel.fireTableDataChanged();
|
simulationTableModel.fireTableDataChanged();
|
||||||
simulationTable.clearSelection();
|
simulationTable.clearSelection();
|
||||||
simulationTable.addRowSelectionInterval(n, n);
|
simulationTable.addRowSelectionInterval(n, n);
|
||||||
|
updatePreviousSelection();
|
||||||
|
|
||||||
openDialog(false, sim);
|
openDialog(false, sim);
|
||||||
}
|
}
|
||||||
@ -347,6 +348,7 @@ public class SimulationPanel extends JPanel {
|
|||||||
document.removeSimulation(selection[i]);
|
document.removeSimulation(selection[i]);
|
||||||
}
|
}
|
||||||
simulationTableModel.fireTableDataChanged();
|
simulationTableModel.fireTableDataChanged();
|
||||||
|
updatePreviousSelection();
|
||||||
takeTheSpotlight();
|
takeTheSpotlight();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user