strip
authorThomasV <thomasv@gitorious>
Wed, 4 Apr 2012 21:30:08 +0000 (23:30 +0200)
committerThomasV <thomasv@gitorious>
Wed, 4 Apr 2012 21:30:08 +0000 (23:30 +0200)
client/gui.py
client/gui_qt.py

index de919f5..77acdd1 100644 (file)
@@ -1111,7 +1111,7 @@ class ElectrumWindow:
                 self.network_button.set_tooltip_text("Connected to %s:%d.\n%d blocks\nresponse time: %f"%(interface.host, interface.port, self.wallet.blocks, interface.rtime))
                 c, u = self.wallet.get_balance()
                 text =  "Balance: %s "%( format_satoshis(c) )
-                if u: text +=  "[%s unconfirmed]"%( format_satoshis(u,True) )
+                if u: text +=  "[%s unconfirmed]"%( format_satoshis(u,True).strip() )
         else:
             self.status_image.set_from_stock(gtk.STOCK_NO, gtk.ICON_SIZE_MENU)
             self.network_button.set_tooltip_text("Trying to contact %s.\n%d blocks"%(interface.host, self.wallet.blocks))
index e249ec7..66f61ce 100644 (file)
@@ -203,7 +203,7 @@ class ElectrumWindow(QMainWindow):
             else:
                 c, u = self.wallet.get_balance()
                 text =  "Balance: %s "%( format_satoshis(c) )
-                if u: text +=  "[%s unconfirmed]"%( format_satoshis(u,True) )
+                if u: text +=  "[%s unconfirmed]"%( format_satoshis(u,True).strip() )
                 icon = QIcon(":icons/status_connected.png")
         else:
             text = "Not connected"