mirror of
https://github.com/tumic0/GPXSee.git
synced 2025-02-26 04:00:49 +01:00
Properly reset the last graph tab
This commit is contained in:
parent
c6cc34c73f
commit
68f67425c3
@ -91,7 +91,7 @@ GUI::GUI()
|
|||||||
_routeDistance = 0;
|
_routeDistance = 0;
|
||||||
_time = 0;
|
_time = 0;
|
||||||
_movingTime = 0;
|
_movingTime = 0;
|
||||||
_lastGraphTab = 0;
|
_lastTab = 0;
|
||||||
|
|
||||||
_dataDir = QDir::homePath();
|
_dataDir = QDir::homePath();
|
||||||
_mapDir = QDir::homePath();
|
_mapDir = QDir::homePath();
|
||||||
@ -1356,6 +1356,8 @@ void GUI::closeFiles()
|
|||||||
|
|
||||||
for (int i = 0; i < _tabs.count(); i++)
|
for (int i = 0; i < _tabs.count(); i++)
|
||||||
_tabs.at(i)->clear();
|
_tabs.at(i)->clear();
|
||||||
|
_lastTab = 0;
|
||||||
|
|
||||||
_mapView->clear();
|
_mapView->clear();
|
||||||
|
|
||||||
_files.clear();
|
_files.clear();
|
||||||
@ -1730,9 +1732,9 @@ void GUI::graphChanged(int index)
|
|||||||
|
|
||||||
_mapView->setGraph(_tabs.indexOf(gt));
|
_mapView->setGraph(_tabs.indexOf(gt));
|
||||||
|
|
||||||
if (_lastGraphTab)
|
if (_lastTab)
|
||||||
gt->setSliderPosition(_lastGraphTab->sliderPosition());
|
gt->setSliderPosition(_lastTab->sliderPosition());
|
||||||
_lastGraphTab = gt;
|
_lastTab = gt;
|
||||||
}
|
}
|
||||||
|
|
||||||
void GUI::updateNavigationActions()
|
void GUI::updateNavigationActions()
|
||||||
|
@ -226,6 +226,7 @@ private:
|
|||||||
MapView *_mapView;
|
MapView *_mapView;
|
||||||
QTabWidget *_graphTabWidget;
|
QTabWidget *_graphTabWidget;
|
||||||
QList<GraphTab*> _tabs;
|
QList<GraphTab*> _tabs;
|
||||||
|
GraphTab *_lastTab;
|
||||||
|
|
||||||
POI *_poi;
|
POI *_poi;
|
||||||
Map *_map;
|
Map *_map;
|
||||||
@ -239,8 +240,6 @@ private:
|
|||||||
DateTimeRange _dateRange;
|
DateTimeRange _dateRange;
|
||||||
QString _pathName;
|
QString _pathName;
|
||||||
|
|
||||||
GraphTab *_lastGraphTab;
|
|
||||||
|
|
||||||
QList<QByteArray> _windowStates;
|
QList<QByteArray> _windowStates;
|
||||||
QList<QByteArray> _windowGeometries;
|
QList<QByteArray> _windowGeometries;
|
||||||
int _frameStyle;
|
int _frameStyle;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user