From 6653de6450af177ee609c277f07364b19869ac96 Mon Sep 17 00:00:00 2001 From: Chris Simons Date: Wed, 6 May 2020 20:40:04 -0700 Subject: [PATCH] Allow selecting Fingerprint Qlabel Setting the Fingerprint label to TextSelectableByMouse allows users to copy/paste the fingerprint so it can be easily added to "TrustedServers.txt" on a client machine (i.e. via SSH). --- src/gui/src/MainWindow.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/gui/src/MainWindow.cpp b/src/gui/src/MainWindow.cpp index 070f15a5..79faf59f 100644 --- a/src/gui/src/MainWindow.cpp +++ b/src/gui/src/MainWindow.cpp @@ -956,6 +956,7 @@ void MainWindow::updateSSLFingerprint() } if (m_AppConfig->getCryptoEnabled() && Fingerprint::local().fileExists()) { m_pLabelLocalFingerprint->setText(Fingerprint::local().readFirst()); + m_pLabelLocalFingerprint->setTextInteractionFlags(Qt::TextSelectableByMouse); } else { m_pLabelLocalFingerprint->setText("Disabled"); }