Skip to content

Commit

Permalink
Allow selecting Fingerprint Qlabel
Browse files Browse the repository at this point in the history
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).
  • Loading branch information
simons-public committed May 7, 2020
1 parent 675a17d commit 6653de6
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/gui/src/MainWindow.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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");
}
Expand Down

0 comments on commit 6653de6

Please sign in to comment.