mirror of
https://github.com/nextcloud/desktop.git
synced 2024-11-26 06:55:59 +03:00
Initialize pointer before use.
This commit is contained in:
parent
732ed57360
commit
0007579ab8
1 changed files with 3 additions and 0 deletions
|
@ -318,6 +318,9 @@ void Application::slotSSLFailed( QNetworkReply *reply, QList<QSslError> errors )
|
|||
QString configHandle = ownCloudInfo::instance()->configHandle(reply);
|
||||
|
||||
// make the ssl dialog aware of the custom config. It loads known certs.
|
||||
if( ! _sslErrorDialog ) {
|
||||
_sslErrorDialog = new SslErrorDialog;
|
||||
}
|
||||
_sslErrorDialog->setCustomConfigHandle( configHandle );
|
||||
|
||||
if( _sslErrorDialog->setErrorList( errors ) ) {
|
||||
|
|
Loading…
Reference in a new issue