From e09e587796373d4cb2093689c82f9912e5f84c52 Mon Sep 17 00:00:00 2001 From: Jedi18 Date: Fri, 29 Jan 2021 12:06:38 +0530 Subject: shifted isUsernameEditingAllowed to qml from c++ --- src/ui/UserProfile.cpp | 15 --------------- 1 file changed, 15 deletions(-) (limited to 'src/ui/UserProfile.cpp') 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 @@ -290,19 +288,6 @@ UserProfile::unverify(QString device) cache::markDeviceUnverified(userid_.toStdString(), device.toStdString()); } -void -UserProfile::allowUsernameEditing(bool allow) -{ - usernameEditing = allow; - emit usernameEditingChanged(); -} - -bool -UserProfile::isUsernameEditingAllowed() const -{ - return usernameEditing; -} - void UserProfile::setGlobalUsername(const QString &globalUser) { -- cgit 1.5.1