summaryrefslogtreecommitdiffstats
path: root/utils/themeeditor/gui/preferencesdialog.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'utils/themeeditor/gui/preferencesdialog.cpp')
-rw-r--r--utils/themeeditor/gui/preferencesdialog.cpp7
1 files changed, 5 insertions, 2 deletions
diff --git a/utils/themeeditor/gui/preferencesdialog.cpp b/utils/themeeditor/gui/preferencesdialog.cpp
index b8d0a0a6d6..d28b21345d 100644
--- a/utils/themeeditor/gui/preferencesdialog.cpp
+++ b/utils/themeeditor/gui/preferencesdialog.cpp
@@ -113,7 +113,10 @@ void PreferencesDialog::loadRender()
QSettings settings;
settings.beginGroup("RBFont");
- ui->fontBox->setText(settings.value("fontDir", "/").toString());
+ QString confDir = QDir::homePath() + "/.rbthemeeditor";
+
+ ui->fontBox->setText(settings.value("fontDir", confDir + "/fonts/")
+ .toString());
settings.endGroup();
@@ -129,7 +132,7 @@ void PreferencesDialog::loadRender()
settings.beginGroup("TargetData");
ui->dbBox->setText(settings.value("targetDbPath",
- QDir::homePath() + "/.targetdb")
+ confDir + "/targetdb")
.toString());
settings.endGroup();