diff options
author | Kevin Smith <git@kismith.co.uk> | 2012-04-23 12:54:09 (GMT) |
---|---|---|
committer | Kevin Smith <git@kismith.co.uk> | 2012-04-23 12:54:09 (GMT) |
commit | 2f64443e7a3e427a3a38665b5aafb77c9b128cc0 (patch) | |
tree | ef46932c841e2187c277b8044d1a13ea7fb10923 | |
parent | ae77eccb397460676b4df8297beaebcc1394faec (diff) | |
download | swift-contrib-2f64443e7a3e427a3a38665b5aafb77c9b128cc0.zip swift-contrib-2f64443e7a3e427a3a38665b5aafb77c9b128cc0.tar.bz2 |
Accept .jpeg images in the vcard dialog as well.
Resolves: #1087
-rw-r--r-- | Swift/QtUI/QtAvatarWidget.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Swift/QtUI/QtAvatarWidget.cpp b/Swift/QtUI/QtAvatarWidget.cpp index 1efb787..f0bdf3c 100644 --- a/Swift/QtUI/QtAvatarWidget.cpp +++ b/Swift/QtUI/QtAvatarWidget.cpp @@ -78,7 +78,7 @@ void QtAvatarWidget::mousePressEvent(QMouseEvent* event) { QAction* result = menu.exec(event->globalPos()); if (result == selectPicture) { - QString fileName = QFileDialog::getOpenFileName(this, tr("Select picture"), "", tr("Image Files (*.png *.jpg *.gif)")); + QString fileName = QFileDialog::getOpenFileName(this, tr("Select picture"), "", tr("Image Files (*.png *.jpg *.jpeg *.gif)")); if (!fileName.isEmpty()) { ByteArray data; readByteArrayFromFile(data, Q2PSTRING(fileName)); |