mirror of
https://github.com/GoldenCheetah/GoldenCheetah.git
synced 2026-02-14 08:38:45 +00:00
Fix RideEditor crash on last delete
If you delete the last ride and scroll down in the ride editor GC will crash. This patch ensures the model is invalidated when a ride is deleted.
This commit is contained in:
@@ -57,6 +57,9 @@ RideFileTableModel::deleted()
|
||||
{
|
||||
// we don't need to disconnect since they're free'd up by QT
|
||||
ride = NULL;
|
||||
beginResetModel();
|
||||
endResetModel();
|
||||
dataChanged(createIndex(0,0), createIndex(90,999999));
|
||||
}
|
||||
|
||||
void
|
||||
|
||||
Reference in New Issue
Block a user