Configure divecomputers: access table data the same way as its set

The table data is set via role, so retrieve the data via role too.

Signed-off-by: Anton Lundin <glance@acc.umu.se>
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
Anton Lundin 2015-09-11 00:13:57 +02:00 committed by Dirk Hohndel
parent e70b33a56b
commit 444d0d6693

View file

@ -403,7 +403,7 @@ void ConfigureDiveComputerDialog::populateDeviceDetails()
}
}
#define GET_INT_FROM(_field, _default) ((_field) != NULL) ? (_field)->text().toInt() : (_default)
#define GET_INT_FROM(_field, _default) ((_field) != NULL) ? (_field)->data(Qt::EditRole).toInt() : (_default)
void ConfigureDiveComputerDialog::populateDeviceDetailsOSTC3()
{