mirror of
https://github.com/tumic0/GPXSee.git
synced 2024-11-28 05:34:47 +01:00
Yet another place with broken graph tab index
This commit is contained in:
parent
f0be0d6774
commit
48dcc6655b
@ -1725,13 +1725,12 @@ void GUI::graphChanged(int index)
|
|||||||
if (index < 0)
|
if (index < 0)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
_mapView->setGraph(index);
|
|
||||||
|
|
||||||
GraphTab *gt = static_cast<GraphTab*>(_graphTabWidget->widget(index));
|
GraphTab *gt = static_cast<GraphTab*>(_graphTabWidget->widget(index));
|
||||||
|
_mapView->setGraph(_tabs.indexOf(gt));
|
||||||
|
|
||||||
if (_lastGraphTab)
|
if (_lastGraphTab)
|
||||||
disconnect(_lastGraphTab, SIGNAL(sliderPositionChanged(qreal)),
|
disconnect(_lastGraphTab, SIGNAL(sliderPositionChanged(qreal)),
|
||||||
_mapView, SLOT(setMarkerPosition(qreal)));
|
_mapView, SLOT(setMarkerPosition(qreal)));
|
||||||
|
|
||||||
connect(gt, SIGNAL(sliderPositionChanged(qreal)), _mapView,
|
connect(gt, SIGNAL(sliderPositionChanged(qreal)), _mapView,
|
||||||
SLOT(setMarkerPosition(qreal)));
|
SLOT(setMarkerPosition(qreal)));
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user