Inform LocationFilterModel of added dive site name

If the user implicitly adds a dive site by editing a dive, and
a location filter is active, check the new dive site in the
location filter.

This is done by informing the LocationFilterModel of the new
dive site name prior to repopulation. The LocationFilterModel
then adds a corresponding entry and marks it as checked.

Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
This commit is contained in:
Berthold Stoeger 2017-11-26 22:21:58 +01:00 committed by Dirk Hohndel
parent f4bcdf46aa
commit 24c72cb359
4 changed files with 22 additions and 1 deletions

View file

@ -69,6 +69,7 @@ public
slots:
void repopulate();
void changeName(const QString &oldName, const QString &newName);
void addName(const QString &newName);
private:
explicit LocationFilterModel(QObject *parent = 0);