Browse Source

use - instead of "(transfer)"

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

4
mix/qml/TransactionDialog.qml

@ -107,6 +107,7 @@ Dialog {
function loadFunctions(contractId) function loadFunctions(contractId)
{ {
functionsModel.clear(); functionsModel.clear();
functionsModel.append({ text: " - " });
var contract = codeModel.contracts[contractId]; var contract = codeModel.contracts[contractId];
if (contract) { if (contract) {
var functions = codeModel.contracts[contractId].contract.functions; var functions = codeModel.contracts[contractId].contract.functions;
@ -114,7 +115,6 @@ Dialog {
functionsModel.append({ text: functions[f].name }); functionsModel.append({ text: functions[f].name });
} }
} }
functionsModel.append({ text: "(transfert)" });
} }
function selectContract(contractName) function selectContract(contractName)
@ -210,7 +210,7 @@ Dialog {
} }
item.isContractCreation = trType.checked; item.isContractCreation = trType.checked;
item.isFunctionCall = item.functionId !== "(transfert)"; item.isFunctionCall = item.functionId !== " - ";
if (!item.isContractCreation) if (!item.isContractCreation)
{ {

Loading…
Cancel
Save