summary refs log tree commit diff
path: root/src/ui/UserProfile.cpp
diff options
context:
space:
mode:
authorJedi18 <targetakhil@gmail.com>2021-01-29 12:06:38 +0530
committerJedi18 <targetakhil@gmail.com>2021-01-29 12:06:38 +0530
commite09e587796373d4cb2093689c82f9912e5f84c52 (patch)
tree4eabfbd9acb5d7ddc8d30c7aebca12d37e248056 /src/ui/UserProfile.cpp
parentmade requeste changes (diff)
downloadnheko-e09e587796373d4cb2093689c82f9912e5f84c52.tar.xz
shifted isUsernameEditingAllowed to qml from c++
Diffstat (limited to 'src/ui/UserProfile.cpp')
-rw-r--r--src/ui/UserProfile.cpp15
1 files changed, 0 insertions, 15 deletions
diff --git a/src/ui/UserProfile.cpp b/src/ui/UserProfile.cpp

index 9e8d45b5..3872294a 100644 --- a/src/ui/UserProfile.cpp +++ b/src/ui/UserProfile.cpp
@@ -270,8 +270,6 @@ UserProfile::changeUsername(QString username) err->matrix_error.error); }); } - - allowUsernameEditing(false); } void @@ -291,19 +289,6 @@ UserProfile::unverify(QString device) } void -UserProfile::allowUsernameEditing(bool allow) -{ - usernameEditing = allow; - emit usernameEditingChanged(); -} - -bool -UserProfile::isUsernameEditingAllowed() const -{ - return usernameEditing; -} - -void UserProfile::setGlobalUsername(const QString &globalUser) { globalUsername = globalUser;