Unregistering of unregeistered accounts
Since it's unregistered, we don't know where to unregister from. Fixes #91.
This commit is contained in:
parent
33b4f896f6
commit
891e3d6517
|
@ -2802,7 +2802,7 @@ class MyForm(settingsmixin.SMainWindow):
|
||||||
# no chans / mailinglists
|
# no chans / mailinglists
|
||||||
if acct.type != 'normal':
|
if acct.type != 'normal':
|
||||||
return
|
return
|
||||||
if self.dialog.ui.radioButtonUnregister.isChecked():
|
if self.dialog.ui.radioButtonUnregister.isChecked() and isinstance(acct, GatewayAccount):
|
||||||
print "unregister"
|
print "unregister"
|
||||||
acct.unregister()
|
acct.unregister()
|
||||||
shared.config.remove_option(addressAtCurrentRow, 'gateway')
|
shared.config.remove_option(addressAtCurrentRow, 'gateway')
|
||||||
|
@ -4243,7 +4243,10 @@ class EmailGatewayDialog(QtGui.QDialog):
|
||||||
self.parent = parent
|
self.parent = parent
|
||||||
addressAtCurrentRow = parent.getCurrentAccount()
|
addressAtCurrentRow = parent.getCurrentAccount()
|
||||||
acct = accountClass(addressAtCurrentRow)
|
acct = accountClass(addressAtCurrentRow)
|
||||||
# if isinstance(acct, GatewayAccount):
|
if isinstance(acct, GatewayAccount):
|
||||||
|
self.ui.radioButtonUnregister.setEnabled(True)
|
||||||
|
else:
|
||||||
|
self.ui.radioButtonUnregister.setEnabled(False)
|
||||||
label = shared.config.get(addressAtCurrentRow, 'label')
|
label = shared.config.get(addressAtCurrentRow, 'label')
|
||||||
if label.find("@mailchuck.com") > -1:
|
if label.find("@mailchuck.com") > -1:
|
||||||
self.ui.lineEditEmail.setText(label)
|
self.ui.lineEditEmail.setText(label)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user