Skip to content

Commit

Permalink
Fix bug #356
Browse files Browse the repository at this point in the history
  • Loading branch information
Insoleet committed Jan 28, 2016
1 parent 68904bc commit 194985a
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/sakia/gui/transfer.py
Original file line number Diff line number Diff line change
Expand Up @@ -93,18 +93,18 @@ def __init__(self, app, account, password_asker, community, transfer, widget=QDi
@classmethod
async def send_money_to_identity(cls, app, account, password_asker, community, identity):
dialog = cls(app, account, password_asker, community, None)
dialog.edit_pubkey.setText(identity.pubkey)
dialog.radio_pubkey.setChecked(True)
dialog.ui.edit_pubkey.setText(identity.pubkey)
dialog.ui.radio_pubkey.setChecked(True)
return await dialog.async_exec()

@classmethod
async def send_transfer_again(cls, app, account, password_asker, community, transfer):
dialog = cls(app, account, password_asker, community, transfer)
dividend = await community.dividend()
relative = transfer.metadata['amount'] / dividend
dialog.spinbox_amount.setMaximum(transfer.metadata['amount'])
dialog.spinbox_relative.setMaximum(relative)
dialog.spinbox_amount.setValue(transfer.metadata['amount'])
dialog.ui.spinbox_amount.setMaximum(transfer.metadata['amount'])
dialog.ui.spinbox_relative.setMaximum(relative)
dialog.ui.spinbox_amount.setValue(transfer.metadata['amount'])

return await dialog.async_exec()

Expand Down

0 comments on commit 194985a

Please sign in to comment.