mirror of
https://github.com/GoldenCheetah/GoldenCheetah.git
synced 2026-02-14 08:38:45 +00:00
combine setActive and rideSelected
And pay attention to MainWindow::activeTab, such that only the active tab redraws itself when changing rides. This change really increases GC's responsiveness when scrolling through the ride list.
This commit is contained in:
@@ -156,6 +156,8 @@ GoogleMapControl::GoogleMapControl(MainWindow *mw)
|
||||
void
|
||||
GoogleMapControl::rideSelected()
|
||||
{
|
||||
if (parent->activeTab() != this)
|
||||
return;
|
||||
RideItem * ride = parent->rideItem();
|
||||
|
||||
if (!ride)
|
||||
|
||||
Reference in New Issue
Block a user