1
0
mirror of https://github.com/tumic0/GPXSee.git synced 2024-10-06 06:43:22 +02:00

Yet another place with broken graph tab index

This commit is contained in:
Martin Tůma 2021-02-23 22:55:22 +01:00
parent f0be0d6774
commit 48dcc6655b

View File

@ -1725,13 +1725,12 @@ void GUI::graphChanged(int index)
if (index < 0)
return;
_mapView->setGraph(index);
GraphTab *gt = static_cast<GraphTab*>(_graphTabWidget->widget(index));
_mapView->setGraph(_tabs.indexOf(gt));
if (_lastGraphTab)
disconnect(_lastGraphTab, SIGNAL(sliderPositionChanged(qreal)),
_mapView, SLOT(setMarkerPosition(qreal)));
connect(gt, SIGNAL(sliderPositionChanged(qreal)), _mapView,
SLOT(setMarkerPosition(qreal)));