Browse Source

bug fix (while selecting a function to call)

cl-refactor
yann300 10 years ago
parent
commit
5902496db5
  1. 4
      mix/qml/TransactionDialog.qml

4
mix/qml/TransactionDialog.qml

@ -125,7 +125,7 @@ Dialog {
function loadParameters() { function loadParameters() {
paramsModel = [] paramsModel = []
if (functionComboBox.currentIndex >= 0 && functionComboBox.currentIndex < functionsModel.count) { if (functionComboBox.currentIndex >= 0 && functionComboBox.currentIndex < functionsModel.count) {
var contract = codeModel.contracts[TransactionHelper.contractFromToken(contractCreationComboBox.currentValue())]; var contract = codeModel.contracts[TransactionHelper.contractFromToken(recipientsAccount.currentValue())];
if (contract) { if (contract) {
var func = getFunction(functionComboBox.currentText, contract); var func = getFunction(functionComboBox.currentText, contract);
if (func) { if (func) {
@ -498,11 +498,9 @@ Dialog {
paramScroll.visible = paramsModel.length > 0 paramScroll.visible = paramsModel.length > 0
paramScroll.Layout.preferredHeight = paramsModel.length < 6 ? paramsModel.length * 30 : 205 paramScroll.Layout.preferredHeight = paramsModel.length < 6 ? paramsModel.length * 30 : 205
if (paramsModel.length === 0) if (paramsModel.length === 0)
{
paramScroll.height = 0 paramScroll.height = 0
} }
} }
}
RowLayout RowLayout
{ {

Loading…
Cancel
Save