mirror of
https://github.com/GoldenCheetah/GoldenCheetah.git
synced 2026-02-15 17:09:56 +00:00
add Erase Ride(s) button to download dialog
This is a workaround for the SRM erase bug. It gives the user a way to try erasing the device's memory without re-downloading a ride.
This commit is contained in:
@@ -135,8 +135,8 @@ SrmDevice::cleanup(CommPortPtr dev)
|
||||
if (!dev2path(dev, path, err))
|
||||
assert(false);
|
||||
if (QMessageBox::question(0, "Powercontrol",
|
||||
"Erase downloaded ride from device memory?",
|
||||
"&Erase", "&Save Only", "", 1, 1) == 0) {
|
||||
"Erase ride from device memory?",
|
||||
"&Erase", "&Cancel", "", 1, 1) == 0) {
|
||||
SrmpcConn srm(path);
|
||||
if(!srm.d || (srmpc_clear_chunks(srm.d) < 0)) {
|
||||
QMessageBox::warning(0, "Error",
|
||||
|
||||
Reference in New Issue
Block a user