transaction_dialog: hide broadcast button when offline

This commit is contained in:
Roman Zeyde 2015-04-23 09:30:25 +03:00
parent d3f696c301
commit b5c31cd031
1 changed files with 1 additions and 0 deletions

View File

@ -178,6 +178,7 @@ class TxDialog(QDialog):
# if we are not synchronized, we cannot tell
if self.parent.network is None or not self.parent.network.is_running() or not self.parent.network.is_connected():
self.broadcast_button.hide() # cannot broadcast when offline
return
if not self.wallet.up_to_date:
return