Skip to content

Do not save the settings twice#2182

Merged
f4exb merged 1 commit intof4exb:masterfrom
dforsi:fix/save-settings
Jun 23, 2024
Merged

Do not save the settings twice#2182
f4exb merged 1 commit intof4exb:masterfrom
dforsi:fix/save-settings

Conversation

@dforsi
Copy link
Contributor

@dforsi dforsi commented Jun 22, 2024

This PR removes a call to m_settings.save() in the destructor of MainWindow because the same call is made when handling the close event which happens just before the call to the destructor when terminating Sdrangel normally, as noted in #2107. When killing Sdrangel with Ctrl+C or similar, neither closeEvent nor ~MainWindow are called so the settings aren't saved anyway.

Settings are saved in MainWindow::closeEvent() which is called when Sdrangel
is exited by closing its main window, or when using the File/Exit menu (or
Ctrl+Q) or when pressing Alt+F4.
@f4exb f4exb merged commit 31c20df into f4exb:master Jun 23, 2024
@dforsi dforsi deleted the fix/save-settings branch June 23, 2024 07:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants