QML UI: Clear divelist model before starting new dive

When user clicks on AddDive, we should clear the model.

Signed-off-by: Grace Karanja <gracie.karanja89@gmail.com>
This commit is contained in:
Grace Karanja 2015-08-12 15:01:39 +03:00 committed by Dirk Hohndel
parent 8d03d26480
commit a3bdf49b84
3 changed files with 7 additions and 2 deletions

View file

@ -129,7 +129,7 @@ void QMLManager::saveChanges()
void QMLManager::addDive()
{
DiveListModel::instance()->clearDives();
}
bool QMLManager::saveCloudPassword() const