From 3df32044ee46caf518b23cc6359f98501f7ca961 Mon Sep 17 00:00:00 2001 From: Berthold Stoeger Date: Tue, 4 Jun 2019 20:59:08 +0200 Subject: 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 --- desktop-widgets/mainwindow.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'desktop-widgets/mainwindow.cpp') diff --git a/desktop-widgets/mainwindow.cpp b/desktop-widgets/mainwindow.cpp index b558ded99..2f3db5b2c 100644 --- a/desktop-widgets/mainwindow.cpp +++ b/desktop-widgets/mainwindow.cpp @@ -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"); -- cgit v1.2.3-70-g09d2