From 6a1bf004252191f820f2252d965312b9530fdd74 Mon Sep 17 00:00:00 2001 From: Philip Kaufmann Date: Fri, 10 Jan 2014 11:43:29 +0100 Subject: [PATCH] [Qt] display native dir separators in select dadatir dialog - fixes display on Windows now \ instead of / before --- src/qt/intro.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/qt/intro.cpp b/src/qt/intro.cpp index 5f7ccf7093..453bbdf374 100644 --- a/src/qt/intro.cpp +++ b/src/qt/intro.cpp @@ -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); }