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:
parent
21d084e258
commit
12380bc397
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue
Block a user