Skip to content

Commit f38b829

Browse files
committed
Use native path separators in Preferences dialog
Thanks to @chrisjlocke for pointing this out.
1 parent 91c1358 commit f38b829

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/PreferencesDialog.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ void PreferencesDialog::loadSettings()
7575
{
7676
ui->encodingComboBox->setCurrentIndex(ui->encodingComboBox->findText(Settings::getValue("db", "defaultencoding").toString(), Qt::MatchFixedString));
7777
ui->comboDefaultLocation->setCurrentIndex(Settings::getValue("db", "savedefaultlocation").toInt());
78-
ui->locationEdit->setText(Settings::getValue("db", "defaultlocation").toString());
78+
ui->locationEdit->setText(QDir::toNativeSeparators(Settings::getValue("db", "defaultlocation").toString()));
7979
ui->checkUpdates->setChecked(Settings::getValue("checkversion", "enabled").toBool());
8080

8181
ui->checkHideSchemaLinebreaks->setChecked(Settings::getValue("db", "hideschemalinebreaks").toBool());
@@ -169,7 +169,7 @@ void PreferencesDialog::loadSettings()
169169
addClientCertToTable(file, cert);
170170
}
171171
}
172-
ui->editRemoteCloneDirectory->setText(Settings::getValue("remote", "clonedirectory").toString());
172+
ui->editRemoteCloneDirectory->setText(QDir::toNativeSeparators(Settings::getValue("remote", "clonedirectory").toString()));
173173

174174
// Gracefully handle the preferred Editor font not being available
175175
matchingFont = ui->comboEditorFont->findText(Settings::getValue("editor", "font").toString(), Qt::MatchExactly);

0 commit comments

Comments
 (0)