Merge pull request #1682 from SiboVG/issue-1681
[#1681] Fix sim table spotlight when no simulations
This commit is contained in:
commit
b39302a5b0
@ -1006,7 +1006,7 @@ public class SimulationPanel extends JPanel {
|
|||||||
*/
|
*/
|
||||||
public void takeTheSpotlight() {
|
public void takeTheSpotlight() {
|
||||||
simulationTable.requestFocusInWindow();
|
simulationTable.requestFocusInWindow();
|
||||||
if (simulationTable.getSelectedRows().length > 0) {
|
if (simulationTable.getRowCount() == 0 || simulationTable.getSelectedRows().length > 0) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
if (previousSelection == null || previousSelection.length == 0) {
|
if (previousSelection == null || previousSelection.length == 0) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user