mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
Cleanup: generate clear_*_table() functions by macro
In analogy to the other table functions, generate these by a macro as well. Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
This commit is contained in:
parent
f4ef1c4bc8
commit
3df32044ee
8 changed files with 18 additions and 31 deletions
|
@ -342,7 +342,7 @@ void DownloadFromDCWidget::on_downloadCancelRetryButton_clicked()
|
|||
// this means we are retrying - so we better clean out the partial
|
||||
// list of downloaded dives from the last attempt
|
||||
diveImportedModel->clearTable();
|
||||
clear_table(thread.table());
|
||||
clear_dive_table(thread.table());
|
||||
}
|
||||
updateState(DOWNLOADING);
|
||||
|
||||
|
@ -493,7 +493,7 @@ void DownloadFromDCWidget::on_cancel_clicked()
|
|||
return;
|
||||
|
||||
// now discard all the dives
|
||||
clear_table(thread.table());
|
||||
clear_dive_table(thread.table());
|
||||
done(-1);
|
||||
}
|
||||
|
||||
|
|
|
@ -1769,7 +1769,7 @@ void MainWindow::on_actionImportDiveSites_triggered()
|
|||
sites.dive_sites[i]->dives.nr = 0;
|
||||
|
||||
// Now we can clear the imported dives and trips.
|
||||
clear_table(&table);
|
||||
clear_dive_table(&table);
|
||||
clear_trip_table(&trips);
|
||||
|
||||
QString source = fileNames.size() == 1 ? fileNames[0] : tr("multiple files");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue