1
0
mirror of https://github.com/qTox/qTox.git synced 2024-03-22 14:00:36 +08:00

Allow non-png avatars, convert them on the fly

This commit is contained in:
Tux3 / Mlkj / !Lev.uXFMLA 2014-09-28 10:59:49 +02:00
parent 21d084e258
commit 12380bc397
No known key found for this signature in database
GPG Key ID: 7E086DD661263264

View File

@ -284,7 +284,7 @@ Camera* Widget::getCamera()
void Widget::onAvatarClicked()
{
QString filename = QFileDialog::getOpenFileName(this, tr("Choose a profile picture"), QDir::homePath(), "*.png");
QString filename = QFileDialog::getOpenFileName(this, tr("Choose a profile picture"), QDir::homePath());
if (filename == "")
return;
QFile file(filename);