Merge pull request #1682 from SiboVG/issue-1681

[#1681] Fix sim table spotlight when no simulations
This commit is contained in:
SiboVG 2022-09-20 10:27:03 +02:00 committed by GitHub
commit b39302a5b0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1006,7 +1006,7 @@ public class SimulationPanel extends JPanel {
*/
public void takeTheSpotlight() {
simulationTable.requestFocusInWindow();
if (simulationTable.getSelectedRows().length > 0) {
if (simulationTable.getRowCount() == 0 || simulationTable.getSelectedRows().length > 0) {
return;
}
if (previousSelection == null || previousSelection.length == 0) {