mirror of
https://github.com/GoldenCheetah/GoldenCheetah.git
synced 2026-02-13 16:18:42 +00:00
Fix SEGV on drop activity into compare pane
.. needed to check context was set before adding to deletelist.
This commit is contained in:
@@ -240,7 +240,7 @@ RideFile *RideItem::ride(bool open)
|
||||
RideItem::~RideItem()
|
||||
{
|
||||
// add to the deleted list
|
||||
if (context->athlete->rideCache) context->athlete->rideCache->deletelist << this;
|
||||
if (context && context->athlete && context->athlete->rideCache) context->athlete->rideCache->deletelist << this;
|
||||
|
||||
//qDebug()<<"deleting:"<<fileName;
|
||||
if (isOpen()) close();
|
||||
|
||||
Reference in New Issue
Block a user