Browse Source

bug fix: account selector

cl-refactor
yann300 10 years ago
parent
commit
59ad8e64b8
  1. 4
      mix/qml/DeployContractStep.qml

4
mix/qml/DeployContractStep.qml

@ -20,6 +20,7 @@ Rectangle {
property int labelWidth: 150 property int labelWidth: 150
function show() function show()
{ {
visible = true visible = true
@ -31,13 +32,12 @@ Rectangle {
accountsModel.append(worker.accounts[k]) accountsModel.append(worker.accounts[k])
} }
if (worker.accounts.length > 0) if (worker.currentAccount === "" && worker.accounts.length > 0)
{ {
worker.currentAccount = worker.accounts[0].id worker.currentAccount = worker.accounts[0].id
accountsList.currentIndex = 0 accountsList.currentIndex = 0
} }
if (projectModel.deployBlockNumber !== -1) if (projectModel.deployBlockNumber !== -1)
{ {
worker.verifyHashes(projectModel.deploymentTrHashes, function (bn, trLost) worker.verifyHashes(projectModel.deploymentTrHashes, function (bn, trLost)

Loading…
Cancel
Save