From 5902496db598b1b896b262741e67dfacdf375fed Mon Sep 17 00:00:00 2001 From: yann300 Date: Mon, 27 Jul 2015 14:35:43 +0200 Subject: [PATCH] bug fix (while selecting a function to call) --- mix/qml/TransactionDialog.qml | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/mix/qml/TransactionDialog.qml b/mix/qml/TransactionDialog.qml index e47bd9ed2..cc2ca2e79 100644 --- a/mix/qml/TransactionDialog.qml +++ b/mix/qml/TransactionDialog.qml @@ -125,7 +125,7 @@ Dialog { function loadParameters() { paramsModel = [] 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) { var func = getFunction(functionComboBox.currentText, contract); if (func) { @@ -498,9 +498,7 @@ Dialog { paramScroll.visible = paramsModel.length > 0 paramScroll.Layout.preferredHeight = paramsModel.length < 6 ? paramsModel.length * 30 : 205 if (paramsModel.length === 0) - { paramScroll.height = 0 - } } }