From c6b683546182017ff6728e3a0707583674df4885 Mon Sep 17 00:00:00 2001 From: csoler Date: Thu, 27 Jul 2017 20:43:08 +0200 Subject: [PATCH] exclude own friends from key removal pre-selection --- retroshare-gui/src/gui/NetworkDialog.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/retroshare-gui/src/gui/NetworkDialog.cpp b/retroshare-gui/src/gui/NetworkDialog.cpp index a8d887daf..bdeda264c 100644 --- a/retroshare-gui/src/gui/NetworkDialog.cpp +++ b/retroshare-gui/src/gui/NetworkDialog.cpp @@ -227,7 +227,7 @@ void NetworkDialog::removeUnusedKeys() std::cerr << "Skipping public/secret key pair " << *it << std::endl; continue ; } - if(now > (time_t) (THREE_MONTHS + details.lastUsed)) + if(now > (time_t) (THREE_MONTHS + details.lastUsed) && !details.accept_connection) { std::cerr << "Adding " << *it << " to pre-selection." << std::endl; pre_selected.insert(*it) ;