From 87ccd547e39fbfd5a5bd970c28a879e97f09e457 Mon Sep 17 00:00:00 2001 From: Gav Wood Date: Tue, 17 Mar 2015 10:31:35 +0100 Subject: [PATCH] Cleanups. --- alethzero/Transact.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/alethzero/Transact.cpp b/alethzero/Transact.cpp index 0b0710379..a9023b2f2 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() && src.size()) + if (ui->gas->value() == ui->gas->minimum() && !src.empty()) ui->gas->setValue((int)(m_ethereum->postState().gasLimitRemaining() / 10)); } else