mirror of
https://github.com/tumic0/GPXSee.git
synced 2025-02-21 18:20:47 +01:00
Fixed POI loading
Better map signal handling
This commit is contained in:
parent
c7d68f924f
commit
afd87c6fa2
@ -321,6 +321,8 @@ void PathView::setPOI(POI *poi)
|
|||||||
|
|
||||||
if (_poi)
|
if (_poi)
|
||||||
connect(_poi, SIGNAL(reloadRequired()), this, SLOT(updatePOI()));
|
connect(_poi, SIGNAL(reloadRequired()), this, SLOT(updatePOI()));
|
||||||
|
|
||||||
|
updatePOI();
|
||||||
}
|
}
|
||||||
|
|
||||||
void PathView::updatePOI()
|
void PathView::updatePOI()
|
||||||
@ -366,10 +368,14 @@ void PathView::addPOI(const QVector<Waypoint> &waypoints)
|
|||||||
|
|
||||||
void PathView::setMap(Map *map)
|
void PathView::setMap(Map *map)
|
||||||
{
|
{
|
||||||
_map = map;
|
|
||||||
if (_map)
|
if (_map)
|
||||||
connect(_map, SIGNAL(loaded()), this, SLOT(redraw()),
|
disconnect(_map, SIGNAL(loaded()), this, SLOT(redraw()));
|
||||||
Qt::UniqueConnection);
|
|
||||||
|
_map = map;
|
||||||
|
|
||||||
|
if (_map)
|
||||||
|
connect(_map, SIGNAL(loaded()), this, SLOT(redraw()));
|
||||||
|
|
||||||
resetCachedContent();
|
resetCachedContent();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user