mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-06-06 21:58:57 -04:00
Fixed another crash in IdEditDialog::createId when avatar is not set.
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@7887 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
parent
4cab5dc743
commit
7cfd50f860
1 changed files with 12 additions and 12 deletions
|
@ -474,7 +474,7 @@ void IdEditDialog::createId()
|
||||||
|
|
||||||
const QPixmap *pixmap = ui.avatarLabel->pixmap();
|
const QPixmap *pixmap = ui.avatarLabel->pixmap();
|
||||||
|
|
||||||
if (!pixmap->isNull())
|
if (pixmap && !pixmap->isNull())
|
||||||
{
|
{
|
||||||
QByteArray ba;
|
QByteArray ba;
|
||||||
QBuffer buffer(&ba);
|
QBuffer buffer(&ba);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue