From 88d6255782d971727e60626f63eaa284277197c3 Mon Sep 17 00:00:00 2001 From: Maran Date: Thu, 29 Nov 2012 11:39:39 +0100 Subject: [PATCH 1/2] Load the first address in your list by default when composing a message --- bitmessagemain.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/bitmessagemain.py b/bitmessagemain.py index 5ed73c76..1bf7a814 100644 --- a/bitmessagemain.py +++ b/bitmessagemain.py @@ -2445,6 +2445,9 @@ class MyForm(QtGui.QMainWindow): #Below this point, it would be good if all of the necessary global data structures were initialized. self.rerenderComboBoxSendFrom() + if(self.ui.comboBoxSendFrom.count() > 0): + self.redrawLabelFrom(self.ui.comboBoxSendFrom.currentIndex()) + self.listOfOutgoingSynSenderThreads = [] #if we don't maintain this list, the threads will get garbage-collected. @@ -3482,4 +3485,4 @@ if __name__ == "__main__": # So far, the Bitmessage protocol, this client, the Wiki, and the forums # are all a one-man operation. Bitcoin tips are quite appreciated! -# 1H5XaDA6fYENLbknwZyjiYXYPQaFjjLX2u \ No newline at end of file +# 1H5XaDA6fYENLbknwZyjiYXYPQaFjjLX2u -- 2.45.1 From f998d934d9b20fd9676e06c4379a86881f04b29a Mon Sep 17 00:00:00 2001 From: Maran Date: Thu, 29 Nov 2012 12:35:48 +0100 Subject: [PATCH 2/2] Rewrote the sqlite check to accept any number of version info --- bitmessagemain.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/bitmessagemain.py b/bitmessagemain.py index 1bf7a814..9cb75100 100644 --- a/bitmessagemain.py +++ b/bitmessagemain.py @@ -3406,8 +3406,9 @@ averageProofOfWorkNonceTrialsPerByte = 320 #The amount of work that should be pe payloadLengthExtraBytes = 14000 #To make sending short messages a little more difficult, this value is added to the payload length for use in calculating the proof of work target. if __name__ == "__main__": - major, minor, revision = sqlite3.sqlite_version_info - if major < 3: + sqlite_version = sqlite3.sqlite_version_info + # Check the Major version, the first element in the array + if sqlite_version[0] < 3: print 'This program requires sqlite version 3 or higher because 2 and lower cannot store NULL values. I see version:', sqlite3.sqlite_version_info sys.exit() -- 2.45.1