mirror of
https://github.com/WinampDesktop/winamp.git
synced 2025-04-27 08:55:41 -04:00
Qt: Fix crash on shutdown settings save
This commit is contained in:
parent
3d84da0ddd
commit
bdafbe0b28
@ -1820,13 +1820,17 @@ void QtHost::SaveSettings()
|
||||
AssertMsg(!g_emu_thread->isOnThread(), "Saving should happen on the UI thread.");
|
||||
|
||||
{
|
||||
Error error;
|
||||
auto lock = Host::GetSettingsLock();
|
||||
if (!s_base_settings_interface->Save())
|
||||
Log_ErrorPrintf("Failed to save settings.");
|
||||
if (!s_base_settings_interface->Save(&error))
|
||||
Log_ErrorFmt("Failed to save settings: {}", error.GetDescription());
|
||||
}
|
||||
|
||||
if (s_settings_save_timer)
|
||||
{
|
||||
s_settings_save_timer->deleteLater();
|
||||
s_settings_save_timer.release();
|
||||
}
|
||||
}
|
||||
|
||||
void QtHost::QueueSettingsSave()
|
||||
|
Loading…
x
Reference in New Issue
Block a user