";
+ for (auto const& i: m_consoleHistory)
+ s += "
>" + i.first.toHtmlEscaped() + "
"
+ "
" + i.second + "
";
+ s += "
";
+ ui->jsConsole->setHtml(s);
}
QString Main::pretty(eth::Address _a) const
@@ -489,14 +554,15 @@ void Main::refresh(bool _override)
auto acs = st.addresses();
ui->accounts->clear();
ui->contracts->clear();
- for (auto n = 0; n < (ui->showAllAccounts->isChecked() ? 2 : 1); ++n)
+ for (auto n = 0; n < 2; ++n)
for (auto i: acs)
{
auto r = render(i.first);
if (r.contains('(') == !n)
{
- (new QListWidgetItem(QString("%2: %1 [%3]").arg(formatBalance(i.second).c_str()).arg(r).arg((unsigned)state().transactionsFrom(i.first)), ui->accounts))
- ->setData(Qt::UserRole, QByteArray((char const*)i.first.data(), Address::size));
+ if (n == 0 || ui->showAllAccounts->isChecked())
+ (new QListWidgetItem(QString("%2: %1 [%3]").arg(formatBalance(i.second).c_str()).arg(r).arg((unsigned)state().transactionsFrom(i.first)), ui->accounts))
+ ->setData(Qt::UserRole, QByteArray((char const*)i.first.data(), Address::size));
if (st.addressHasCode(i.first))
(new QListWidgetItem(QString("%2: %1 [%3]").arg(formatBalance(i.second).c_str()).arg(r).arg((unsigned)st.transactionsFrom(i.first)), ui->contracts))
->setData(Qt::UserRole, QByteArray((char const*)i.first.data(), Address::size));
diff --git a/alethzero/MainWin.h b/alethzero/MainWin.h
index 2b972b73a..cc4779587 100644
--- a/alethzero/MainWin.h
+++ b/alethzero/MainWin.h
@@ -63,7 +63,15 @@ public:
QList