Commit 7a7d1b73 authored by Jan Grulich's avatar Jan Grulich

Fortissl VPN: fix crash when obtaining properties in the auth dialog

BUG: 407596
FIXED-IN: 5.16.0
parent d91cb509
......@@ -38,11 +38,11 @@ FortisslvpnAuthDialog::FortisslvpnAuthDialog(const NetworkManager::VpnSetting::P
{
Q_D(FortisslvpnAuthDialog);
const NMStringMap data = d->setting->data();
d->ui.setupUi(this);
d->setting = setting;
const NMStringMap data = d->setting->data();
const NetworkManager::Setting::SecretFlags otpFlag = static_cast<NetworkManager::Setting::SecretFlags>(data.value(NM_FORTISSLVPN_KEY_OTP"-flags").toInt());
d->ui.otpFrame->setVisible(otpFlag == NetworkManager::Setting::NotSaved);
......
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