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:
parent
675a17d6e8
commit
6653de6450
|
@ -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");
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue