Fix shadowing in LoginPage.cpp

pull/369/head
Nicolas Werner 4 years ago
parent 03d817d277
commit 0c0c69074d
  1. 6
      src/LoginPage.cpp

@ -315,14 +315,14 @@ LoginPage::checkHomeserverVersion()
if (err || flows.flows.empty()) if (err || flows.flows.empty())
emit versionOkCb(LoginMethod::Password); emit versionOkCb(LoginMethod::Password);
LoginMethod loginMethod = LoginMethod::Password; LoginMethod loginMethod_ = LoginMethod::Password;
for (const auto &flow : flows.flows) { for (const auto &flow : flows.flows) {
if (flow.type == mtx::user_interactive::auth_types::sso) { if (flow.type == mtx::user_interactive::auth_types::sso) {
loginMethod = LoginMethod::SSO; loginMethod_ = LoginMethod::SSO;
break; break;
} }
} }
emit versionOk(loginMethod); emit versionOk(loginMethod_);
}); });
}); });
} }

Loading…
Cancel
Save