self.label_3.setText(QtGui.QApplication.translate("aboutDialog","<html><head/><body><p>Distributed under the MIT/X11 software license, see the accompanying file license.txt or <a href=\"http://www.opensource.org/licenses/mit-license.php\"><span style=\" text-decoration: underline; color:#0000ff;\">http://www.opensource.org/licenses/mit-license.php</span></a></p></body></html>",None,QtGui.QApplication.UnicodeUTF8))
self.label_3.setText(QtGui.QApplication.translate("aboutDialog","<html><head/><body><p>Distributed under the MIT/X11 software license; see <a href=\"http://www.opensource.org/licenses/mit-license.php\"><span style=\" text-decoration: underline; color:#0000ff;\">http://www.opensource.org/licenses/mit-license.php</span></a></p></body></html>",None,QtGui.QApplication.UnicodeUTF8))
self.label_5.setText(QtGui.QApplication.translate("aboutDialog","This is Beta software.",None,QtGui.QApplication.UnicodeUTF8))
<string><html><head/><body><p>Distributed under the MIT/X11 software license, see the accompanying file license.txt or <a href="http://www.opensource.org/licenses/mit-license.php"><span style=" text-decoration: underline; color:#0000ff;">http://www.opensource.org/licenses/mit-license.php</span></a></p></body></html></string>
<string><html><head/><body><p>Distributed under the MIT/X11 software license; see <a href="http://www.opensource.org/licenses/mit-license.php"><span style=" text-decoration: underline; color:#0000ff;">http://www.opensource.org/licenses/mit-license.php</span></a></p></body></html></string>
@ -1189,7 +1188,7 @@ class receiveDataThread(QThread):
print'publicEncryptionKey in hex:',publicEncryptionKey.encode('hex')
printLock.release()
t=(ripe,True,self.data[24:24+self.payloadLength],int(time.time())+604800)#after one week we may remove this pub key from our database.
t=(ripe,True,self.data[24:24+self.payloadLength],embeddedTime+604800)#after one week we may remove this pub key from our database.
sqlLock.acquire()
sqlSubmitQueue.put('''INSERT INTO pubkeys VALUES (?,?,?,?)''')
sqlSubmitQueue.put(t)
@ -2080,7 +2079,7 @@ class singleCleaner(QThread):
sqlReturnQueue.get()
t=()
sqlSubmitQueue.put('''select toaddress, toripe, fromaddress, subject, message, ackdata, lastactiontime, status, pubkeyretrynumber, msgretrynumber FROM sent WHERE (status='findingpubkey' OR status='sentmessage') ''')
sqlSubmitQueue.put('''select toaddress, toripe, fromaddress, subject, message, ackdata, lastactiontime, status, pubkeyretrynumber, msgretrynumber FROM sent WHERE ((status='findingpubkey' OR status='sentmessage') AND folder='sent') ''')#If the message's folder='trash' then we'll ignore it.
sqlSubmitQueue.put(t)
queryreturn=sqlReturnQueue.get()
forrowinqueryreturn:
@ -2089,7 +2088,7 @@ class singleCleaner(QThread):
print'It has been a long time and we haven\'t heard a response to our getpubkey request. Sending again.'
try:
delneededPubkeys[toripe]
delneededPubkeys[toripe]#We need to take this entry out of the neededPubkeys structure because the workerQueue checks to see whether the entry is already present and will not do the POW and send the message because it assumes that it has already done it recently.
except:
pass
workerQueue.put(('sendmessage',toaddress))
@ -2116,7 +2115,7 @@ class singleWorker(QThread):
defrun(self):
sqlLock.acquire()
sqlSubmitQueue.put('SELECT toripe FROM sent WHERE status=?')
sqlSubmitQueue.put('''SELECT toripe FROM sent WHERE (status=? AND folder='sent')''')
sqlSubmitQueue.put(('findingpubkey',))
queryreturn=sqlReturnQueue.get()
sqlLock.release()
@ -2197,10 +2196,6 @@ class singleWorker(QThread):
sqlSubmitQueue.put('SELECT toaddress, fromaddress, subject, message, status, ackdata, lastactiontime FROM sent ORDER BY lastactiontime')
sqlSubmitQueue.put('''SELECT toaddress, fromaddress, subject, message, status, ackdata, lastactiontime FROM sent where folder = 'sent'ORDER BY lastactiontime''')
sqlSubmitQueue.put('')
queryreturn=sqlReturnQueue.get()
forrowinqueryreturn:
@ -3242,7 +3245,7 @@ class MyForm(QtGui.QMainWindow):
newItem=myTableWidgetItem('Broadcast on '+strftime(config.get('bitmessagesettings','timeformat'),localtime(int(lastactiontime))))
@ -4122,6 +4126,19 @@ class MyForm(QtGui.QMainWindow):
self.ui.tableWidgetInbox.removeRow(currentRow)
self.statusBar().showMessage('Moved item to trash. There is no user interface to view your trash, but it is still on disk if you are desperate to get it back.')
sqlSubmitQueue.put('''UPDATE sent SET folder='trash' WHERE ackdata=?''')
sqlSubmitQueue.put(t)
sqlReturnQueue.get()
sqlLock.release()
self.ui.tableWidgetSent.removeRow(currentRow)
self.statusBar().showMessage('Moved item to trash. There is no user interface to view your trash, but it is still on disk if you are desperate to get it back.')
#Group of functions for the Address Book dialog box
defon_action_AddressBookNew(self):
self.click_pushButtonAddAddressBook()
@ -4213,6 +4230,8 @@ class MyForm(QtGui.QMainWindow):