add error message and update avatars on avatar change in timeline and user profile dialog
This commit is contained in:
parent
c3e02240bf
commit
d535cc5e75
5 changed files with 48 additions and 4 deletions
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue