SMA: fix crash on login failure of inverter

This commit is contained in:
Simon Stürz 2023-05-22 17:04:59 +02:00
parent 23d620c52d
commit c193e69b3f

View File

@ -398,7 +398,7 @@ void IntegrationPluginSma::setupThing(ThingSetupInfo *info)
pluginStorage()->remove("");
pluginStorage()->endGroup();
delete inverter;
inverter->deleteLater();
info->finish(Thing::ThingErrorAuthenticationFailure, QT_TR_NOOP("Failed to log in with the given password. Please try again."));
return;
}