This commit is contained in:
@@ -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