aboutsummaryrefslogtreecommitdiffstats
path: root/qt-ui/mainwindow.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'qt-ui/mainwindow.cpp')
-rw-r--r--qt-ui/mainwindow.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/qt-ui/mainwindow.cpp b/qt-ui/mainwindow.cpp
index f4f97f92d..36fa71d73 100644
--- a/qt-ui/mainwindow.cpp
+++ b/qt-ui/mainwindow.cpp
@@ -677,6 +677,9 @@ void MainWindow::readSettings()
s.endGroup();
s.beginGroup("Display");
+ QFont defaultFont = s.value("divelist_font", qApp->font()).value<QFont>();
+ defaultFont.setPointSizeF(s.value("font_size", qApp->font().pointSizeF()).toFloat());
+ qApp->setFont(defaultFont);
GET_TXT("divelist_font", divelist_font);
GET_INT("font_size", font_size);
GET_INT("displayinvalid", display_invalid_dives);