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).
This commit is contained in:
Chris Simons 2020-05-06 20:40:04 -07:00
parent 675a17d6e8
commit 6653de6450
1 changed files with 1 additions and 0 deletions

View File

@ -956,6 +956,7 @@ void MainWindow::updateSSLFingerprint()
} }
if (m_AppConfig->getCryptoEnabled() && Fingerprint::local().fileExists()) { if (m_AppConfig->getCryptoEnabled() && Fingerprint::local().fileExists()) {
m_pLabelLocalFingerprint->setText(Fingerprint::local().readFirst()); m_pLabelLocalFingerprint->setText(Fingerprint::local().readFirst());
m_pLabelLocalFingerprint->setTextInteractionFlags(Qt::TextSelectableByMouse);
} else { } else {
m_pLabelLocalFingerprint->setText("Disabled"); m_pLabelLocalFingerprint->setText("Disabled");
} }