From 4e62b874e8884aa287e4988d625642a031c13d6e Mon Sep 17 00:00:00 2001 From: subtly Date: Sat, 28 Mar 2015 10:37:33 +0100 Subject: [PATCH] fix dialogue. hard-code localhost address so ipv6 address isn't resolved. --- alethzero/Connect.cpp | 5 +++-- alethzero/MainWin.cpp | 2 +- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/alethzero/Connect.cpp b/alethzero/Connect.cpp index 076ebafe0..cf19f83b8 100644 --- a/alethzero/Connect.cpp +++ b/alethzero/Connect.cpp @@ -28,7 +28,7 @@ Connect::Connect(QWidget *parent) : QDialog(parent), ui(new Ui::Connect) { - reset(); + ui->setupUi(this); } Connect::~Connect() @@ -43,7 +43,8 @@ void Connect::setEnvironment(QStringList const& _nodes) void Connect::reset() { - ui->setupUi(this); + ui->nodeId->clear(); + ui->required->setChecked(false); } QString Connect::host() diff --git a/alethzero/MainWin.cpp b/alethzero/MainWin.cpp index 4e5ed49a3..2b0750d46 100644 --- a/alethzero/MainWin.cpp +++ b/alethzero/MainWin.cpp @@ -142,7 +142,7 @@ Main::Main(QWidget *parent) : #endif #if ETH_DEBUG - m_servers.append("localhost:30300"); + m_servers.append("127.0.0.1:30300"); #endif m_servers.append(QString::fromStdString(Host::pocHost() + ":30303"));