GUI: Intro: Support translating caption of data directory chooser

This commit is contained in:
Luke Dashjr 2022-05-15 21:22:04 +00:00 committed by Hennadii Stepanov
parent 3868ba3a27
commit 5a4fe55270
No known key found for this signature in database
GPG key ID: 410108112E7EA81F

View file

@ -318,7 +318,7 @@ void Intro::on_dataDirectory_textChanged(const QString &dataDirStr)
void Intro::on_ellipsisButton_clicked()
{
QString dir = QDir::toNativeSeparators(QFileDialog::getExistingDirectory(nullptr, "Choose data directory", ui->dataDirectory->text()));
QString dir = QDir::toNativeSeparators(QFileDialog::getExistingDirectory(nullptr, tr("Choose data directory"), ui->dataDirectory->text()));
if(!dir.isEmpty())
ui->dataDirectory->setText(dir);
}