Commit 6eba31df authored by Volker Krause's avatar Volker Krause
Browse files

fix crash when creating a sendmail transport

svn path=/trunk/KDE/kdepim/mailtransport/; revision=618924
parent ab3b7331
......@@ -92,6 +92,7 @@ TransportConfigDialog::TransportConfigDialog( Transport* transport, QWidget * pa
d->transport = transport;
d->passwordEdit = 0;
d->serverTest = 0;
d->encryptionGroup = 0;
d->authGroup = 0;
d->resetAuthCapabilities();
......@@ -287,7 +288,7 @@ void TransportConfigDialog::hostNameChanged( const QString &text )
{
d->resetAuthCapabilities();
enableButton( Ok, !text.isEmpty() );
for ( int i = 0; i < d->encryptionGroup->buttons().count(); i++ )
for ( int i = 0; d->encryptionGroup && i < d->encryptionGroup->buttons().count(); i++ )
d->encryptionGroup->buttons().at( i )->setEnabled( true );
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment