From 2f64443e7a3e427a3a38665b5aafb77c9b128cc0 Mon Sep 17 00:00:00 2001 From: Kevin Smith <git@kismith.co.uk> Date: Mon, 23 Apr 2012 13:54:09 +0100 Subject: Accept .jpeg images in the vcard dialog as well. Resolves: #1087 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)); -- cgit v0.10.2-6-g49f6