OSCAR-code/oscar/SleepLib
sawinglogz e3e67438ea Fix the incomplete cleanup in Profile::UnloadMachineData that was resulting in
duplicate sessions being added when making preference changes to a brand new
profile with existing data.

Preference changes trigger a reload, see PreferencesDialog::Save and
needs_reload, leading to MainWindow::reloadProfile -> MainWindow::CloseProfile
-> Profile::UnloadMachineData.

This is the root cause of the duplicate sessions, but the fact that it only
happened with newly created profiles, rather than on subsequent launches,
demonstrates an inconsistency in state of Profile. It should be identical when
initially created and when loaded via subsequent application launch.
2019-08-15 16:28:07 -04:00
..
loader_plugins Merge branch 'master' into prs1-f0v6 2019-08-14 09:15:39 -04:00
appsettings.h Default right sidebar off, calendar off, pie chart off with new OSCAR folder. 2019-07-19 06:43:53 -07:00
calcs.cpp Change folder and file name from oscr to oscar 2019-02-22 19:23:39 -05:00
calcs.h Change folder and file name from oscr to oscar 2019-02-22 19:23:39 -05:00
common.cpp Test builds use settings key of oscar-test, branch builds oscar-branch, and release builds just oscar. Default data directory named similarly. 2019-08-12 16:02:53 -07:00
common.h Fix deprecated-copy errors and made deprecated-declarations just a warning 2019-08-06 23:49:51 +02:00
day.cpp Add a critical warning when a duplicate session is added to a Day object. 2019-08-15 16:14:54 -04:00
day.h Add Day::removeMachine to detect and clean up dangling references rather than 2019-08-15 15:49:40 -04:00
event.cpp Fix PRS1 F0V23 PB parsing bug that triggered unordered data warnings. 2019-06-04 20:11:50 -04:00
event.h Make Event and Loader/PRS1Loader protected and private members public during unit testing. 2019-05-04 21:50:45 -04:00
journal.cpp Change OSCR to OSCAR in cpp, h, ui, and html files 2019-02-23 19:58:25 -05:00
journal.h Change folder and file name from oscr to oscar 2019-02-22 19:23:39 -05:00
machine_common.cpp Change folder and file name from oscr to oscar 2019-02-22 19:23:39 -05:00
machine_common.h Merge branch 'master' into dateformat 2019-08-08 16:26:02 -07:00
machine_loader.cpp Clean up by deleting unused threading code and re-grouping declarations 2019-07-12 15:58:14 -04:00
machine_loader.h Clean up by deleting unused threading code and re-grouping declarations 2019-07-12 15:58:14 -04:00
machine.cpp Add a critical warning and skip when attempting to add a duplicate session to a Machine object. 2019-08-15 16:18:23 -04:00
machine.h Clean up by deleting unused threading code and re-grouping declarations 2019-07-12 15:58:14 -04:00
preferences.cpp Change Settings/AppRoot to Settings/AppData to reduce confusion between execuable path and data folder path 2019-03-25 19:43:04 -04:00
preferences.h Add utility to rename a preference setting 2019-07-14 20:23:23 -07:00
profiles.cpp Fix the incomplete cleanup in Profile::UnloadMachineData that was resulting in 2019-08-15 16:28:07 -04:00
profiles.h Initial attempt at recalculation number of periods for annual statistics 2019-05-24 12:43:49 -07:00
progressdialog.cpp Change folder and file name from oscr to oscar 2019-02-22 19:23:39 -05:00
progressdialog.h Change folder and file name from oscr to oscar 2019-02-22 19:23:39 -05:00
schema.cpp Clarified Unclassified Apnea description 2019-03-25 19:34:01 -04:00
schema.h Fix deprecated-copy errors and made deprecated-declarations just a warning 2019-08-06 23:49:51 +02:00
serialoximeter.cpp Add moule name to debug, force tab enable after import 2019-06-11 10:30:51 -04:00
serialoximeter.h Change folder and file name from oscr to oscar 2019-02-22 19:23:39 -05:00
session.cpp Diagnostic changes for a future feature 2019-07-25 06:25:03 -07:00
session.h Improve qWarning message to show timestamps causing the warning. 2019-06-24 10:08:53 -07:00