f4exb / sdrangel

SDR Rx/Tx software for Airspy, Airspy HF+, BladeRF, HackRF, LimeSDR, PlutoSDR, RTL-SDR, SDRplay and FunCube
GNU General Public License v3.0
2.72k stars 421 forks source link

Do not save the settings twice #2182

Closed dforsi closed 1 week ago

dforsi commented 1 week ago

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.