Honour wheelsize configuration

Fixes #651.
This commit is contained in:
Mark Liversedge
2012-02-17 14:02:57 +00:00
parent 7f54c3d5bc
commit 2d4d235c2d
3 changed files with 13 additions and 5 deletions

View File

@@ -89,6 +89,7 @@ DeviceConfigurations::readConfig()
configStr = QString("%1%2").arg(GC_DEV_WHEEL).arg(i+1);
configVal = appsettings->value(NULL, configStr);
Entry.wheelSize = configVal.toInt();
if (Entry.wheelSize == 0) Entry.wheelSize = 2100; // default to 700C
configStr = QString("%1%2").arg(GC_DEV_PROF).arg(i+1);
configVal = appsettings->value(NULL, configStr);