summaryrefslogtreecommitdiffstats
path: root/qt-ui/configuredivecomputerdialog.cpp
diff options
context:
space:
mode:
authorGravatar Anton Lundin <glance@acc.umu.se>2015-09-11 00:13:57 +0200
committerGravatar Dirk Hohndel <dirk@hohndel.org>2015-09-10 15:37:05 -0700
commit444d0d669383ecba57494a53b5840fd1e279a7e5 (patch)
tree3d74ab7f1d0a99a1abac4dbfba4e4ac201744434 /qt-ui/configuredivecomputerdialog.cpp
parente70b33a56bd0b3749d8b380c587895547d14ff50 (diff)
downloadsubsurface-444d0d669383ecba57494a53b5840fd1e279a7e5.tar.gz
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>
Diffstat (limited to 'qt-ui/configuredivecomputerdialog.cpp')
-rw-r--r--qt-ui/configuredivecomputerdialog.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/qt-ui/configuredivecomputerdialog.cpp b/qt-ui/configuredivecomputerdialog.cpp
index 95225bdf9..255f144d9 100644
--- a/qt-ui/configuredivecomputerdialog.cpp
+++ b/qt-ui/configuredivecomputerdialog.cpp
@@ -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()
{