summaryrefslogtreecommitdiffstats
path: root/qt-ui/mainwindow.cpp
diff options
context:
space:
mode:
authorGravatar Dirk Hohndel <dirk@hohndel.org>2013-05-26 10:49:05 -0700
committerGravatar Dirk Hohndel <dirk@hohndel.org>2013-05-26 10:49:05 -0700
commit96f74d9939c3394bb8ece0888b473cdf4bc88b1a (patch)
tree8ed98c2c81fa2e9e376ed5aa42caf3580c5a3bce /qt-ui/mainwindow.cpp
parent43892e36fd58e23c5bd2b1dc400d34afc7d8c9ae (diff)
downloadsubsurface-96f74d9939c3394bb8ece0888b473cdf4bc88b1a.tar.gz
Repair the saving and loading of units
This way it should work... Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'qt-ui/mainwindow.cpp')
-rw-r--r--qt-ui/mainwindow.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/qt-ui/mainwindow.cpp b/qt-ui/mainwindow.cpp
index 4d0299d7e..0c042cae5 100644
--- a/qt-ui/mainwindow.cpp
+++ b/qt-ui/mainwindow.cpp
@@ -355,11 +355,11 @@ void MainWindow::readSettings()
settings.endGroup();
settings.beginGroup("Units");
- GET_UNIT(v, "feet", length, units::METERS, units::FEET);
- GET_UNIT(v, "psi", pressure, units::BAR, units::PSI);
- GET_UNIT(v, "cuft", volume, units::LITER, units::CUFT);
- GET_UNIT(v, "fahrenheit", temperature, units::CELSIUS, units::FAHRENHEIT);
- GET_UNIT(v, "lbs", weight, units::KG, units::LBS);
+ GET_UNIT(v, "feet", length, units::FEET, units::METERS);
+ GET_UNIT(v, "psi", pressure, units::PSI, units::BAR);
+ GET_UNIT(v, "cuft", volume, units::CUFT, units::LITER);
+ GET_UNIT(v, "fahrenheit", temperature, units::FAHRENHEIT, units::CELSIUS);
+ GET_UNIT(v, "lbs", weight, units::LBS, units::KG);
settings.endGroup();
settings.beginGroup("DisplayListColumns");
GET_BOOL(v, "CYLINDER", prefs.visible_cols.cylinder);