diff options
Diffstat (limited to 'desktop-widgets/tab-widgets/maintab.cpp')
-rw-r--r-- | desktop-widgets/tab-widgets/maintab.cpp | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/desktop-widgets/tab-widgets/maintab.cpp b/desktop-widgets/tab-widgets/maintab.cpp index 18d424437..c0a4c5018 100644 --- a/desktop-widgets/tab-widgets/maintab.cpp +++ b/desktop-widgets/tab-widgets/maintab.cpp @@ -658,17 +658,15 @@ struct dive_site *MainTab::updateDiveSite(struct dive_site *pickedDs, dive *d) if (pickedDs == RECENTLY_ADDED_DIVESITE) { QString name = ui.location->text(); - pickedDs = create_dive_site(qPrintable(name), displayed_dive.when, &dive_site_table); + pickedDs = create_dive_site(qPrintable(name), &dive_site_table); createdNewDive = true; } if (origDs) { if(createdNewDive) { - uint32_t pickedUuid = pickedDs->uuid; copy_dive_site(origDs, pickedDs); free(pickedDs->name); pickedDs->name = copy_qstring(ui.location->text()); - pickedDs->uuid = pickedUuid; qDebug() << "Creating and copying dive site"; } else if (!has_location(&pickedDs->location)) { pickedDs->location = origDs->location; |