Browse Source

Merge branch 'pr1684'

pull/1714/head
tux3 10 years ago
parent
commit
b8077775ce
No known key found for this signature in database
GPG Key ID: 7E086DD661263264
  1. 7
      src/widget/form/profileform.cpp

7
src/widget/form/profileform.cpp

@ -213,14 +213,14 @@ void ProfileForm::onAvatarClicked()
file.open(QIODevice::ReadOnly); file.open(QIODevice::ReadOnly);
if (!file.isOpen()) if (!file.isOpen())
{ {
GUI::showError(tr("Error"), tr("Unable to open this file")); GUI::showError(tr("Error"), tr("Unable to open this file."));
return; return;
} }
QPixmap pic; QPixmap pic;
if (!pic.loadFromData(file.readAll())) if (!pic.loadFromData(file.readAll()))
{ {
GUI::showError(tr("Error"), tr("Unable to read this image")); GUI::showError(tr("Error"), tr("Unable to read this image."));
return; return;
} }
@ -242,7 +242,8 @@ void ProfileForm::onAvatarClicked()
// If this happens, you're really doing it on purpose. // If this happens, you're really doing it on purpose.
if (bytes.size() > 65535) if (bytes.size() > 65535)
{ {
QMessageBox::critical(this, tr("Error"), tr("This image is too big")); QMessageBox::critical(this, tr("Error"),
tr("The supplied image is too large.\nPlease use an image that is less than 64 KiB in size."));
return; return;
} }

Loading…
Cancel
Save