fixed a bug which occurs if "run to break" is executed by the assembler

while model is not running.
This commit is contained in:
hneemann 2017-10-07 12:41:16 +02:00
parent 9e2c8e8988
commit c0cbabae6b

View File

@ -1454,9 +1454,10 @@ public final class Main extends JFrame implements ClosingWindowListener.ConfirmS
try {
AddressPicker addressPicker = new AddressPicker();
SwingUtilities.invokeAndWait(() -> {
if (model != null && model.isFastRunModel() && !realTimeClockRunning)
if (model != null && model.isFastRunModel() && !realTimeClockRunning) {
runToBreakAction.actionPerformed(null);
addressPicker.getProgramROMAddress(model);
addressPicker.getProgramROMAddress(model);
}
});
return addressPicker.getAddressString();
} catch (InterruptedException | InvocationTargetException e) {