mirror of
https://github.com/GoldenCheetah/GoldenCheetah.git
synced 2026-02-16 01:19:57 +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:
@@ -47,6 +47,8 @@ RideSummaryWindow::RideSummaryWindow(MainWindow *mainWindow) :
|
||||
void
|
||||
RideSummaryWindow::refresh()
|
||||
{
|
||||
// XXX: activeTab is never equaly to RideSummaryWindow right now because
|
||||
// it's wrapped in the summarySplitter in MainWindow.
|
||||
if (!mainWindow->rideItem()) {
|
||||
rideSummary->clear();
|
||||
return;
|
||||
|
||||
Reference in New Issue
Block a user