From b8d53c5a38626313324bd9749fedaeecd2bfc3a2 Mon Sep 17 00:00:00 2001 From: Gav Wood Date: Tue, 17 Mar 2015 10:30:54 +0100 Subject: [PATCH] Better crash fix. --- alethzero/Transact.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/alethzero/Transact.cpp b/alethzero/Transact.cpp index 2648367f8..0b0710379 100644 --- a/alethzero/Transact.cpp +++ b/alethzero/Transact.cpp @@ -237,7 +237,7 @@ void Transact::rejigData() if (!ui->gas->isEnabled()) ui->gas->setValue(m_backupGas); 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)); } else