mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
Repair the saving and loading of units
This way it should work... Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
43892e36fd
commit
96f74d9939
2 changed files with 17 additions and 12 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue