mirror of
https://github.com/dashpay/dash.git
synced 2024-12-26 20:42:59 +01:00
[Qt] display native dir separators in select dadatir dialog
- fixes display on Windows now \ instead of / before
This commit is contained in:
parent
5b45bf400e
commit
6a1bf00425
@ -233,7 +233,7 @@ void Intro::on_dataDirectory_textChanged(const QString &dataDirStr)
|
|||||||
|
|
||||||
void Intro::on_ellipsisButton_clicked()
|
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())
|
if(!dir.isEmpty())
|
||||||
ui->dataDirectory->setText(dir);
|
ui->dataDirectory->setText(dir);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user