diff --git a/CMakeLists.txt b/CMakeLists.txt index fe83eb378..e424645d2 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -5,7 +5,7 @@ set(CMAKE_AUTOMOC ON) cmake_policy(SET CMP0015 NEW) -set(ETH_VERSION 0.2.6) +set(ETH_VERSION 0.2.8) set(ETH_BUILD_TYPE ${CMAKE_BUILD_TYPE}) # Default HEADLESS to 0. diff --git a/alethzero/MainWin.cpp b/alethzero/MainWin.cpp index 1036c1ea0..03aa49321 100644 --- a/alethzero/MainWin.cpp +++ b/alethzero/MainWin.cpp @@ -304,7 +304,7 @@ void Main::on_send_clicked() u256 totalReq = value() + fee(); m_client->lock(); for (auto i: m_myKeys) - if (m_client->state().balance(i.address()) >= totalReq) + if (m_client->state().balance(i.address()) >= totalReq && i.address() != Address(fromUserHex(ui->destination->text().toStdString()))) { m_client->unlock(); Secret s = i.secret();