update session
authorThomasV <thomasv@gitorious>
Tue, 15 Nov 2011 07:49:19 +0000 (08:49 +0100)
committerThomasV <thomasv@gitorious>
Tue, 15 Nov 2011 07:49:19 +0000 (08:49 +0100)
client/gui.py

index 27c75ec..8f96380 100644 (file)
@@ -557,6 +557,7 @@ class BitcoinGUI:
         password = password_dialog() if self.wallet.use_encryption else None
 
         status, msg = self.wallet.send( to_address, amount, label, password, True )
+        self.wallet.new_session() # we created a new change address
         if status:
             show_message( "payment sent.\n" + msg )
             payto_entry.set_text("")
@@ -875,6 +876,7 @@ class BitcoinGUI:
         else:
                 password = password_dialog() if self.wallet.use_encryption else None
                 success, ret = self.wallet.get_new_address(password)
+                self.wallet.new_session() # we created a new address
                 if success:
                     address = ret
                     #if label:  self.wallet.labels[address] = label