summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Stefan Fuchs <sfuchs@gmx.de>2017-12-19 21:08:23 +0100
committerGravatar Robert C. Helling <helling@atdotde.de>2017-12-24 00:01:39 +0100
commit603e43f46ece939e732df14c501844e7bd983211 (patch)
treebb74264ce245f21bc108a02b4817512227888815
parent337f82c87615bbff635cc1f9e3c2f2f7b8a17daa (diff)
downloadsubsurface-603e43f46ece939e732df14c501844e7bd983211.tar.gz
Use function emitDataChanged in diveplannermodel consistently
Signed-off-by: Stefan Fuchs <sfuchs@gmx.de>
-rw-r--r--qt-models/diveplannermodel.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/qt-models/diveplannermodel.cpp b/qt-models/diveplannermodel.cpp
index 5e8f330c7..82aeda388 100644
--- a/qt-models/diveplannermodel.cpp
+++ b/qt-models/diveplannermodel.cpp
@@ -583,14 +583,14 @@ void DivePlannerPointsModel::setDecoMode(int mode)
auto planner = SettingsObjectWrapper::instance()->planner_settings;
planner->setDecoMode(deco_mode(mode));
emit recreationChanged(mode == int(prefs.planner_deco_mode));
- emit dataChanged(createIndex(0, 0), createIndex(rowCount() - 1, COLUMNS -1));
+ emitDataChanged();
}
void DivePlannerPointsModel::setSafetyStop(bool value)
{
auto planner = SettingsObjectWrapper::instance()->planner_settings;
planner->setSafetyStop(value);
- emit dataChanged(createIndex(0, 0), createIndex(rowCount() - 1, COLUMNS -1));
+ emitDataChanged();
}
void DivePlannerPointsModel::setReserveGas(int reserve)