31 Preferences.getCooperation("TryOtherPorts")) |
31 Preferences.getCooperation("TryOtherPorts")) |
32 self.serverPortSpin.setValue( |
32 self.serverPortSpin.setValue( |
33 Preferences.getCooperation("ServerPort")) |
33 Preferences.getCooperation("ServerPort")) |
34 self.portToTrySpin.setValue( |
34 self.portToTrySpin.setValue( |
35 Preferences.getCooperation("MaxPortsToTry")) |
35 Preferences.getCooperation("MaxPortsToTry")) |
|
36 self.autoAcceptCheckBox.setChecked( |
|
37 Preferences.getCooperation("AutoAcceptConnections")) |
36 |
38 |
37 def save(self): |
39 def save(self): |
38 """ |
40 """ |
39 Public slot to save the Cooperation configuration. |
41 Public slot to save the Cooperation configuration. |
40 """ |
42 """ |
41 Preferences.setCooperation("AutoStartServer", |
43 Preferences.setCooperation("AutoStartServer", |
42 self.autostartCheckBox.isChecked()) |
44 self.autostartCheckBox.isChecked()) |
43 Preferences.setCooperation("TryOtherPorts", |
45 Preferences.setCooperation("TryOtherPorts", |
44 self.otherPortsCheckBox.isChecked()) |
46 self.otherPortsCheckBox.isChecked()) |
|
47 Preferences.setCooperation("AutoAcceptConnections", |
|
48 self.autoAcceptCheckBox.isChecked()) |
45 Preferences.setCooperation("ServerPort", |
49 Preferences.setCooperation("ServerPort", |
46 self.serverPortSpin.value()) |
50 self.serverPortSpin.value()) |
47 Preferences.setCooperation("MaxPortsToTry", |
51 Preferences.setCooperation("MaxPortsToTry", |
48 self.portToTrySpin.value()) |
52 self.portToTrySpin.value()) |
49 |
53 |