subsurface/qt-ui
Dirk Hohndel 9d8b0addf9 Correctly copy preferences
When just assigning one structure to the other we copy the string
pointers. If we then modify those strings in the copy, we happily free
the strings of the original. And then resetting the preferences equally
happily reused those strings, pointing to long since freed memory.

I think what I did now is excessive for the current use case in that it
copies a ton of strings that are unset in the default_prefs. But I figured
this is a rarely used function and I might as well do it correctly.

Also, once we implement multi user support with per user preferences we
will be copying completely populated preferences around (at least that's
my guess).

Fixes #940

Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
2015-10-06 10:19:43 +01:00
..
css
marble
profile Add refreshProfile member function to MainWindow class 2015-09-22 19:58:14 -07:00
statistics Address uninitialized member warnings 2015-06-22 10:57:51 -07:00
about.cpp Re-assign numbers for beta versions 2015-09-03 07:40:14 -07:00
about.h
about.ui
btdeviceselectiondialog.cpp Fix build error on Windows with Qt5.5 2015-09-20 15:08:14 -07:00
btdeviceselectiondialog.h Fix build error on Windows with Qt5.5 2015-09-20 15:08:14 -07:00
btdeviceselectiondialog.ui Style and readability tweaks to btdeviceselectiondialog 2015-09-05 07:08:20 -07:00
configuredivecomputerdialog.cpp Avoid potential uninitialized access 2015-10-02 15:42:43 -04:00
configuredivecomputerdialog.h Connect up custom serial in dc configuration 2015-09-12 14:02:32 -07:00
configuredivecomputerdialog.ui Probe and expose OSTC3 model information 2015-09-25 09:56:11 -07:00
divecomponentselection.ui Layout issues: Fix DiveShare export dialog 2015-05-25 17:45:13 -07:00
divecomputermanagementdialog.cpp Fewer rebuilds triggered by changes in models.h 2015-05-29 14:13:44 -07:00
divecomputermanagementdialog.h
divecomputermanagementdialog.ui
divelistview.cpp Undo/redo of dive deletion needs to handle trips as well 2015-10-02 14:50:12 -04:00
divelistview.h Add support to "split" a dive with surface time in the middle 2015-10-01 22:29:43 -04:00
divelogexportdialog.cpp More style and readability changes 2015-09-05 07:42:57 -07:00
divelogexportdialog.h HTML export: separate UI and logic code 2015-06-16 14:04:41 -07:00
divelogexportdialog.ui Default to first tab on export 2015-07-21 07:33:31 -07:00
divelogimportdialog.cpp CSV import: strip whitespace from column names before matching 2015-09-11 11:10:36 -07:00
divelogimportdialog.h Clean up CSV import parameters 2015-08-27 08:59:44 -07:00
divelogimportdialog.ui Layout issues: Fix the DiveImportDialog 2015-05-25 17:45:11 -07:00
divepicturewidget.cpp Move DivePictureModel to qt-models 2015-05-29 14:14:27 -07:00
divepicturewidget.h Move DivePictureModel to qt-models 2015-05-29 14:14:27 -07:00
diveplanner.cpp Don't offer gas selection for the last waypoint in planner 2015-09-11 09:15:14 -07:00
diveplanner.h VPM-B: Add conservatism levels to the ui. Fix planner settings disabling. 2015-08-15 15:16:51 +02:00
diveplanner.ui Layout issues: Fix DiveShare export dialog 2015-05-25 17:45:13 -07:00
diveshareexportdialog.cpp Remove unneeded includes 2015-08-31 15:12:18 -07:00
diveshareexportdialog.h
diveshareexportdialog.ui Layout issues: Fix DiveShare export dialog 2015-05-25 17:45:13 -07:00
downloadfromdivecomputer.cpp Uemis downloader: start downloading using the correct dive ID 2015-09-19 21:30:33 -07:00
downloadfromdivecomputer.h Only enable Bluetooth support if building against Qt5.4 or newer 2015-07-20 09:35:00 -07:00
downloadfromdivecomputer.ui More style and readability changes 2015-09-05 07:42:57 -07:00
filterwidget.ui Add better icons for the filter dialog 2014-12-31 23:53:28 -08:00
globe.cpp Don't zoom out the globe if the dive site has no GPS 2015-10-01 07:52:13 -04:00
globe.h Enable building with NO_MARBLE again 2015-07-31 11:01:57 -07:00
graphicsview-common.cpp CCR option: display o2 sensor data 2015-01-21 17:00:18 +12:00
graphicsview-common.h CCR option: display o2 sensor data 2015-01-21 17:00:18 +12:00
groupedlineedit.cpp Change colors of stars if widget has focus 2015-08-15 05:00:30 -07:00
groupedlineedit.h
kmessagewidget.cpp KMessageWidget: hide messages regardless whether it's visible 2015-07-16 10:55:55 -07:00
kmessagewidget.h Update KMessageWidget to KF5 2015-06-03 21:26:31 -07:00
listfilter.ui Layout issues: Fix spacing for the filter dialog 2015-05-25 17:43:08 -07:00
locationinformation.cpp Do not incorrectly use the UUID as the dive name 2015-10-06 00:01:30 +01:00
locationinformation.h Remove unused member 2015-10-02 17:30:21 -04:00
locationInformation.ui Make it possible to use Subsurface in height=768 2015-09-02 15:25:44 -07:00
maintab.cpp Make dive trip location edit work again. 2015-10-01 18:01:34 -04:00
maintab.h Make dive trip location edit work again. 2015-10-01 18:01:34 -04:00
maintab.ui Add a new QLineEdit to set the dive trip location 2015-10-01 17:59:44 -04:00
mainwindow.cpp Show error messages during start up as soon as the main window is shown 2015-10-06 00:01:30 +01:00
mainwindow.h Show error messages during start up as soon as the main window is shown 2015-10-06 00:01:30 +01:00
mainwindow.ui Make Facebook more user friendly 2015-09-16 21:16:58 -07:00
metrics.cpp
metrics.h
modeldelegates.cpp Only check Windows version when building on Windows 2015-10-06 00:23:22 +01:00
modeldelegates.h Create a delegate to display custom data 2015-07-01 19:24:52 -07:00
notificationwidget.cpp Cloud storage: clear our last error if verification succeeds 2015-06-14 14:18:51 -07:00
notificationwidget.h Cloud storage: clear our last error if verification succeeds 2015-06-14 14:18:51 -07:00
plannerDetails.ui Layout issues: Fix planner layout 2015-05-25 17:45:13 -07:00
plannerSettings.ui Use Bühlmann in all strings shown to the user 2015-09-16 21:16:58 -07:00
preferences.cpp Correctly copy preferences 2015-10-06 10:19:43 +01:00
preferences.h Make password change asynchronous 2015-07-22 15:06:57 -07:00
preferences.ui Remove unused part of the geocoding preferences 2015-10-06 00:01:30 +01:00
printdialog.cpp Printing: use the same code for both statistics and divelist print 2015-08-22 18:36:19 +03:00
printdialog.h Printing: add template_options struct that contains template 2015-07-05 21:00:25 +03:00
printoptions.cpp printoptions.cpp: add missing tr() calls 2015-10-01 12:55:29 -04:00
printoptions.h Printing: add statistics templates to the dialog 2015-08-22 18:34:34 +03:00
printoptions.ui Printing: add "Import", "Export" and "Delete" buttons for templates 2015-07-28 11:37:51 +03:00
qtwaitingspinner.cpp Add a new class, QtWaitingSpinner, MIT Licensed. 2015-05-17 15:00:25 -07:00
qtwaitingspinner.h Add a new class, QtWaitingSpinner, MIT Licensed. 2015-05-17 15:00:25 -07:00
renumber.ui
searchbar.ui
setpoint.ui
shiftimagetimes.ui Add checkbox to force images to match dives 2015-09-11 09:18:55 -07:00
shifttimes.ui
simplewidgets.cpp Avoid having uninitialized member 2015-10-01 22:02:53 -04:00
simplewidgets.h Add checkbox to force images to match dives 2015-09-11 09:18:55 -07:00
socialnetworks.cpp Make Facebook more user friendly 2015-09-16 21:16:58 -07:00
socialnetworks.h Make Facebook more user friendly 2015-09-16 21:16:58 -07:00
socialnetworksdialog.ui
starwidget.cpp Minor code cleanup. 2015-08-15 05:01:33 -07:00
starwidget.h
subsurfacewebservices.cpp Make importing of GPS locations less verbose 2015-09-28 13:11:44 -04:00
subsurfacewebservices.h Make password change asynchronous 2015-07-22 15:06:57 -07:00
tableview.cpp Fewer rebuilds triggered by changes in models.h 2015-05-29 14:13:44 -07:00
tableview.h TableView - improving the column width calculation 2015-03-19 15:33:16 -07:00
tableview.ui
tagwidget.cpp Remove information panel from mainwindow.ui 2015-02-10 10:45:45 -08:00
tagwidget.h
templateedit.cpp Printing: minor fixes as suggested by Lubomir 2015-09-16 21:32:22 -07:00
templateedit.h Printing: fix TemplateEdit color selection bug 2015-08-15 15:02:04 +03:00
templateedit.ui Style & spelling changes to printing 2015-09-05 07:43:11 -07:00
undocommands.cpp Use copy_string() to avoid potential crash 2015-10-03 07:19:55 -04:00
undocommands.h Undo/redo of dive deletion needs to handle trips as well 2015-10-02 14:50:12 -04:00
updatemanager.cpp Remove unneeded includes 2015-08-31 15:12:18 -07:00
updatemanager.h Add unique but random UUID to server queries 2015-01-25 12:02:13 -08:00
urldialog.ui Allow images to be added via the web 2015-04-24 09:36:21 -07:00
usermanual.cpp Make search and close shortcut for user manual work on Mac 2015-01-28 14:30:19 -08:00
usermanual.h Make search and close shortcut for user manual work on Mac 2015-01-28 14:30:19 -08:00
usersurvey.cpp Move helper functions around 2015-02-23 09:31:08 -08:00
usersurvey.h Move helper functions around 2015-02-23 09:31:08 -08:00
usersurvey.ui Include iPhone companion app to user survey 2015-01-30 22:48:08 -08:00
webservices.ui