Browse Source

Better crash fix.

cl-refactor
Gav Wood 10 years ago
parent
commit
b8d53c5a38
  1. 2
      alethzero/Transact.cpp

2
alethzero/Transact.cpp

@ -237,7 +237,7 @@ void Transact::rejigData()
if (!ui->gas->isEnabled()) if (!ui->gas->isEnabled())
ui->gas->setValue(m_backupGas); ui->gas->setValue(m_backupGas);
ui->gas->setEnabled(true); ui->gas->setEnabled(true);
if (ui->gas->value() == ui->gas->minimum() && m_ethereum) if (ui->gas->value() == ui->gas->minimum() && src.size())
ui->gas->setValue((int)(m_ethereum->postState().gasLimitRemaining() / 10)); ui->gas->setValue((int)(m_ethereum->postState().gasLimitRemaining() / 10));
} }
else else

Loading…
Cancel
Save