From 42fa8d4b3c3a9e98b0b1685356f488892905eb63 Mon Sep 17 00:00:00 2001 From: csoler Date: Tue, 15 Feb 2022 22:04:54 +0100 Subject: [PATCH] fixed adding external IPs and DNS in old cert format --- libretroshare | 2 +- retroshare-gui/src/gui/HomePage.cpp | 11 +---------- retroshare-gui/src/gui/HomePage.h | 1 - 3 files changed, 2 insertions(+), 12 deletions(-) diff --git a/libretroshare b/libretroshare index 61dbe774d..87fdae942 160000 --- a/libretroshare +++ b/libretroshare @@ -1 +1 @@ -Subproject commit 61dbe774d60070a7ce371f925f230a878996cdd5 +Subproject commit 87fdae942186ab3412ce40438e30f76670dd55d0 diff --git a/retroshare-gui/src/gui/HomePage.cpp b/retroshare-gui/src/gui/HomePage.cpp index dcd98f11e..b14b68eb9 100644 --- a/retroshare-gui/src/gui/HomePage.cpp +++ b/retroshare-gui/src/gui/HomePage.cpp @@ -80,7 +80,7 @@ HomePage::HomePage(QWidget *parent) : mUseOldFormatact = new QAction(QIcon(), tr("Use old certificate format"),this); mUseOldFormatact->setToolTip(tr("Displays the certificate format used up to version 0.6.5\nOld Retroshare nodes will not understand the\nnew short format")); - connect(mUseOldFormatact, SIGNAL(triggered()), this, SLOT(switchCertificateFormat())); + connect(mUseOldFormatact, SIGNAL(triggered()), this, SLOT(updateOwnCert())); mUseOldFormatact->setCheckable(true); mUseOldFormatact->setChecked(false); menu->addAction(mUseOldFormatact); @@ -164,15 +164,6 @@ void HomePage::handleEvent(std::shared_ptr e) } } -void HomePage::switchCertificateFormat() -{ - whileBlocking(mIncludeDNSact)->setVisible(!mUseOldFormatact->isChecked()); - whileBlocking(mIncludeLocIPact)->setVisible(!mUseOldFormatact->isChecked()); - whileBlocking(mIncludeExtIPact)->setVisible(!mUseOldFormatact->isChecked()); - - updateOwnCert(); -} - #ifdef DEAD_CODE void HomePage::certContextMenu(QPoint /*point*/) { diff --git a/retroshare-gui/src/gui/HomePage.h b/retroshare-gui/src/gui/HomePage.h index d881c6327..a20f07863 100644 --- a/retroshare-gui/src/gui/HomePage.h +++ b/retroshare-gui/src/gui/HomePage.h @@ -63,7 +63,6 @@ private slots: void webMail(); void openWebHelp() ; void recommendFriends(); - void switchCertificateFormat(); private: Ui::HomePage *ui;