Merge pull request #3504

6a1bf00 [Qt] display native dir separators in select dadatir dialog (Philip Kaufmann)
This commit is contained in:
Wladimir J. van der Laan 2014-01-10 12:53:14 +01:00
commit 131fb42b1b
No known key found for this signature in database
GPG Key ID: 74810B012346C9A6

View File

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