toAddressesList=list(set(toAddressesList))#remove duplicate addresses. If the user has one address with a BM- and the same address without the BM-, this will not catch it. They'll send the message to the person twice.
@ -2773,6 +2772,7 @@ class MyForm(QtGui.QMainWindow):
print'Status bar!','Error: you must specify a From address.'
self.statusBar().showMessage('Error: You must specify a From address. If you don''t have one, go to the ''Your Identities'' tab.')
else:
toAddress=addBMIfNotPresent(toAddress)
self.statusBar().showMessage('')
ifconnectionsCount[streamNumber]==0:
self.statusBar().showMessage('Warning: You are currently not connected. Bitmessage will do the work necessary to send the message but it won\'t send until you connect.')
@ -3022,7 +3022,7 @@ class MyForm(QtGui.QMainWindow):
ifself.NewSubscriptionDialogInstance.ui.labelSubscriptionAddressCheck.text()=='Address is valid.':
#First we must check to see if the address is already in the address book. The user cannot add it again or else it will cause problems when updating and deleting the entry.
sqlSubmitQueue.put('''INSERT INTO addressbook VALUES (?,?)''')
sqlSubmitQueue.put(t)
@ -3053,7 +3053,7 @@ class MyForm(QtGui.QMainWindow):
ifself.NewSubscriptionDialogInstance.ui.labelSubscriptionAddressCheck.text()=='Address is valid.':
#First we must check to see if the address is already in the address book. The user cannot add it again or else it will cause problems when updating and deleting the entry.
sqlSubmitQueue.put('''INSERT INTO subscriptions VALUES (?,?,?)''')
sqlSubmitQueue.put(t)
@ -3180,7 +3180,7 @@ class MyForm(QtGui.QMainWindow):
ifself.NewBlacklistDialogInstance.ui.labelSubscriptionAddressCheck.text()=='Address is valid.':
#First we must check to see if the address is already in the address book. The user cannot add it again or else it will cause problems when updating and deleting the entry.