summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
authorNicolas Werner <nicolas.werner@hotmail.de>2021-01-06 08:02:00 -0500
committerNicolas Werner <nicolas.werner@hotmail.de>2021-01-06 08:02:00 -0500
commit1db68109fc246880fca9476e84ff5949b116922c (patch)
tree0931664a49bc5180099ba782817d1fff7bae5c9b /src
parentMerge pull request #365 from Nheko-Reborn/typing (diff)
parentRemove sodium from flatpak (diff)
downloadnheko-1db68109fc246880fca9476e84ff5949b116922c.tar.xz
Merge branch 'macos-ci-fix' into 'master'
Macos ci fix

See merge request nheko-reborn/nheko!3
Diffstat (limited to 'src')
-rw-r--r--src/LoginPage.cpp6
-rw-r--r--src/UserSettingsPage.cpp2
2 files changed, 4 insertions, 4 deletions
diff --git a/src/LoginPage.cpp b/src/LoginPage.cpp

index 39d0f9d6..dba5ba51 100644 --- a/src/LoginPage.cpp +++ b/src/LoginPage.cpp
@@ -315,14 +315,14 @@ LoginPage::checkHomeserverVersion() if (err || flows.flows.empty()) emit versionOkCb(LoginMethod::Password); - LoginMethod loginMethod = LoginMethod::Password; + LoginMethod loginMethod_ = LoginMethod::Password; for (const auto &flow : flows.flows) { if (flow.type == mtx::user_interactive::auth_types::sso) { - loginMethod = LoginMethod::SSO; + loginMethod_ = LoginMethod::SSO; break; } } - emit versionOk(loginMethod); + emit versionOk(loginMethod_); }); }); } diff --git a/src/UserSettingsPage.cpp b/src/UserSettingsPage.cpp
index 4ca3be49..7c7ef9ab 100644 --- a/src/UserSettingsPage.cpp +++ b/src/UserSettingsPage.cpp
@@ -54,7 +54,7 @@ QSharedPointer<UserSettings> UserSettings::instance_; UserSettings::UserSettings() { - connect(QCoreApplication::instance(), &QCoreApplication::aboutToQuit, [this]() { + connect(QCoreApplication::instance(), &QCoreApplication::aboutToQuit, []() { instance_.clear(); }); }