summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKevin Smith <git@kismith.co.uk>2012-04-23 12:54:09 (GMT)
committerKevin Smith <git@kismith.co.uk>2012-04-23 12:54:09 (GMT)
commit2f64443e7a3e427a3a38665b5aafb77c9b128cc0 (patch)
treeef46932c841e2187c277b8044d1a13ea7fb10923
parentae77eccb397460676b4df8297beaebcc1394faec (diff)
downloadswift-2f64443e7a3e427a3a38665b5aafb77c9b128cc0.zip
swift-2f64443e7a3e427a3a38665b5aafb77c9b128cc0.tar.bz2
Accept .jpeg images in the vcard dialog as well.
Resolves: #1087
-rw-r--r--Swift/QtUI/QtAvatarWidget.cpp2
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));