diff --git a/alethzero/MainWin.cpp b/alethzero/MainWin.cpp index 97e2ba032..4d279e649 100644 --- a/alethzero/MainWin.cpp +++ b/alethzero/MainWin.cpp @@ -360,8 +360,7 @@ void Main::refreshWhisper() void Main::addNewId(QString _ids) { - Secret const& id = jsToSecret(_ids.toStdString()); - KeyPair kp(id); + KeyPair kp(jsToSecret(_ids.toStdString())); m_myIdentities.push_back(kp); m_server->setIdentities(keysAsVector(owned())); refreshWhisper();