diff options
Diffstat (limited to 'qt-ui')
-rw-r--r-- | qt-ui/maintab.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/qt-ui/maintab.cpp b/qt-ui/maintab.cpp index 2962efc6f..c20eddbe1 100644 --- a/qt-ui/maintab.cpp +++ b/qt-ui/maintab.cpp @@ -691,11 +691,11 @@ void MainTab::acceptChanges() } else if (MainWindow::instance() && MainWindow::instance()->dive_list()->selectedTrips().count() == 1) { /* now figure out if things have changed */ if (!same_string(displayedTrip.notes, currentTrip->notes)) { - currentTrip->notes = strdup(displayedTrip.notes); + currentTrip->notes = copy_string(displayedTrip.notes); mark_divelist_changed(true); } if (!same_string(displayedTrip.location, currentTrip->location)) { - currentTrip->location = strdup(displayedTrip.location); + currentTrip->location = copy_string(displayedTrip.location); mark_divelist_changed(true); } currentTrip = NULL; |