diff options
author | Jedi18 <targetakhil@gmail.com> | 2021-02-02 13:30:47 +0530 |
---|---|---|
committer | Jedi18 <targetakhil@gmail.com> | 2021-02-02 13:30:47 +0530 |
commit | d535cc5e759757fc71751df7d89131cdf2cd71d2 (patch) | |
tree | beb30cb76bc98e699bbd9349ca5e738035cc8fff /src/ui/UserProfile.cpp | |
parent | update room and global avatar through user profile (diff) | |
download | nheko-d535cc5e759757fc71751df7d89131cdf2cd71d2.tar.xz |
add error message and update avatars on avatar change in timeline and user profile dialog
Diffstat (limited to 'src/ui/UserProfile.cpp')
-rw-r--r-- | src/ui/UserProfile.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/ui/UserProfile.cpp b/src/ui/UserProfile.cpp index 960cfc4d..e260c924 100644 --- a/src/ui/UserProfile.cpp +++ b/src/ui/UserProfile.cpp @@ -308,12 +308,12 @@ UserProfile::changeAvatar() QFile file{fileName, this}; if (format != "image") { - // displayErrorMessage(tr("The selected file is not an image")); + emit displayError(tr("The selected file is not an image")); return; } if (!file.open(QIODevice::ReadOnly)) { - // displayErrorMessage(tr("Error while reading file: %1").arg(file.errorString())); + emit displayError(tr("Error while reading file: %1").arg(file.errorString())); return; } |