mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
Update DiveLocationModel when thread finishes
This patch updates the DiveLocationModel when the GeoLoockupInformationThread finishes, and also selects the correct index for the displayed dive. Signed-off-by: Tomaz Canabrava <tomaz.canabrava@gmail.com> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
d6e61b74fc
commit
ac6a7ab24e
5 changed files with 25 additions and 4 deletions
|
@ -1,6 +1,12 @@
|
|||
#include "divelocationmodel.h"
|
||||
#include "dive.h"
|
||||
|
||||
LocationInformationModel *LocationInformationModel::instance()
|
||||
{
|
||||
static LocationInformationModel *self = new LocationInformationModel();
|
||||
return self;
|
||||
}
|
||||
|
||||
LocationInformationModel::LocationInformationModel(QObject *obj) : QAbstractListModel(obj), internalRowCount(0)
|
||||
{
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue