Skip to content

Commit

Permalink
Fix button state for SSL certificate check
Browse files Browse the repository at this point in the history
A copy paste error was introduced in PR #20338.

PR #21659.
  • Loading branch information
Chocobo1 authored and glassez committed Oct 23, 2024
1 parent 063f77b commit 878d829
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/gui/optionsdialog.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1915,7 +1915,7 @@ Path OptionsDialog::getFilter() const
void OptionsDialog::webUIHttpsCertChanged(const Path &path)
{
const auto readResult = Utils::IO::readFile(path, Utils::Net::MAX_SSL_FILE_SIZE);
const bool isCertValid = !Utils::SSLKey::load(readResult.value_or(QByteArray())).isNull();
const bool isCertValid = Utils::Net::isSSLCertificatesValid(readResult.value_or(QByteArray()));

m_ui->textWebUIHttpsCert->setSelectedPath(path);
m_ui->lblSslCertStatus->setPixmap(UIThemeManager::instance()->getScaledPixmap(
Expand Down

0 comments on commit 878d829

Please sign in to comment.