mirror of
https://github.com/tumic0/GPXSee.git
synced 2025-02-20 17:50:49 +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)
|
||||
connect(_poi, SIGNAL(reloadRequired()), this, SLOT(updatePOI()));
|
||||
|
||||
updatePOI();
|
||||
}
|
||||
|
||||
void PathView::updatePOI()
|
||||
@ -366,10 +368,14 @@ void PathView::addPOI(const QVector<Waypoint> &waypoints)
|
||||
|
||||
void PathView::setMap(Map *map)
|
||||
{
|
||||
_map = map;
|
||||
if (_map)
|
||||
connect(_map, SIGNAL(loaded()), this, SLOT(redraw()),
|
||||
Qt::UniqueConnection);
|
||||
disconnect(_map, SIGNAL(loaded()), this, SLOT(redraw()));
|
||||
|
||||
_map = map;
|
||||
|
||||
if (_map)
|
||||
connect(_map, SIGNAL(loaded()), this, SLOT(redraw()));
|
||||
|
||||
resetCachedContent();
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user