This commit is contained in:
1 parent
8e897696c3
commit
399c8b7de7
1 file changed
+1
-1
@@ -166,7 +166,7 @@ void selectAvatarDialogImpl::isRejected() { settingsCorrect = FALSE; }
|
|||||||
void selectAvatarDialogImpl::setExternalAvatar() {
|
void selectAvatarDialogImpl::setExternalAvatar() {
|
||||||
|
|
||||||
if (avatarDir == "") avatarDir = QDir::homePath();
|
if (avatarDir == "") avatarDir = QDir::homePath();
|
||||||
QString fileName = QFileDialog::getOpenFileName(this, tr("Select external avatar picture"), avatarDir, tr("Images (*.png)"));
|
QString fileName = QFileDialog::getOpenFileName(this, tr("Select external avatar picture"), avatarDir, tr("Images (*.png *.jpg *.gif)"));
|
||||||
|
|
||||||
if (!fileName.isEmpty()) {
|
if (!fileName.isEmpty()) {
|
||||||
lineEdit->setText(fileName);
|
lineEdit->setText(fileName);
|
||||||
|
|||||||
Reference in new issue
Block a user