From 8a9edb2905d57601e52fb9353a68bad3be3552f7 Mon Sep 17 00:00:00 2001 From: Phenom Date: Thu, 27 Apr 2017 17:03:53 +0200 Subject: [PATCH] Create a Gxs Identity by default. --- retroshare-gui/src/gui/GenCertDialog.cpp | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/retroshare-gui/src/gui/GenCertDialog.cpp b/retroshare-gui/src/gui/GenCertDialog.cpp index c65c08b89..11bd8f7dd 100644 --- a/retroshare-gui/src/gui/GenCertDialog.cpp +++ b/retroshare-gui/src/gui/GenCertDialog.cpp @@ -22,6 +22,7 @@ #include "GenCertDialog.h" #include +#include #include #include #include @@ -269,9 +270,6 @@ void GenCertDialog::setupState() //ui.no_gpg_key_label->setText(tr("Welcome to Retroshare. Before you can proceed you need to create a profile and associate a node with it. To do so please fill out this form.\nAlternatively you can import a (previously exported) profile. Just uncheck \"Create a new profile\"")); //no_gpg_key_label->setVisible(false); - ui.nickname_label->setVisible(adv_state) ; - ui.nickname_input->setVisible(adv_state) ; - ui.name_label->setVisible(true); ui.name_input->setVisible(generate_new); @@ -421,7 +419,15 @@ void GenCertDialog::genPerson() RsPgpId PGPId; bool isHiddenLoc = false; - mGXSNickname = ui.nickname_input->text(); + if(ui.nickname_input->isVisible()) + { + mGXSNickname = ui.nickname_input->text(); + } + else + { + mGXSNickname = ui.node_input->text(); + } + if (!mGXSNickname.isEmpty()) { if (mGXSNickname.size() < RSID_MINIMUM_NICKNAME_SIZE)