Skip to content

Commit cf19951

Browse files
author
Martin Marinov
committed
Attack done
1 parent aad09f5 commit cf19951

25 files changed

Lines changed: 90 additions & 9 deletions

JavaGUI/src/martin/tempest/gui/Main.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -588,7 +588,7 @@ public void actionPerformed(ActionEvent arg0) {
588588
btnAutoResolution.setBounds(749, 571, 41, 22);
589589
frmTempestSdr.getContentPane().add(btnAutoResolution);
590590

591-
tglbtnSuperBandwidth = new ParametersToggleButton(PARAM.SUPERRESOLUTION, "T", prefs, true);
591+
tglbtnSuperBandwidth = new ParametersToggleButton(PARAM.SUPERRESOLUTION, "T", null, false);
592592
tglbtnSuperBandwidth.setText("SB");
593593
tglbtnSuperBandwidth.setToolTipText("Simulate bandwidth several times bigger than what the device can offer");
594594
tglbtnSuperBandwidth.setMargin(new Insets(0, 0, 0, 0));

JavaGUI/src/martin/tempest/gui/ParametersToggleButton.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,11 +19,11 @@ public class ParametersToggleButton extends JToggleButton {
1919
private void notifyCallback(final boolean selected) {
2020
if (callback != null)
2121
callback.onSetParam(param, selected ? 1 : 0);
22-
prefs.putBoolean(prefname, selected);
22+
if (prefs != null) prefs.putBoolean(prefname, selected);
2323
}
2424

2525
public ParametersToggleButton(final TSDRLibrary.PARAM param, final String text, final Preferences prefs, final boolean defaultvalue) {
26-
super(text, prefs.getBoolean("PARAM"+param, defaultvalue));
26+
super(text, (prefs != null) ? prefs.getBoolean("PARAM"+param, defaultvalue) : defaultvalue);
2727
this.param = param;
2828
this.prefs = prefs;
2929
prefname = "PARAM"+param;

Release/JavaGUI/JTempestSDR.jar

53 Bytes
Binary file not shown.
0 Bytes
Binary file not shown.
0 Bytes
Binary file not shown.
0 Bytes
Binary file not shown.
0 Bytes
Binary file not shown.
0 Bytes
Binary file not shown.
0 Bytes
Binary file not shown.
0 Bytes
Binary file not shown.

0 commit comments

Comments
 (0)