fix without patch

Приведение в соответствие с github
Патч делать не нужно.
This commit is contained in:
lsv 2022-04-27 16:01:13 +05:00
parent bdfca63db0
commit 9e9bfef8b8
56 changed files with 512 additions and 505 deletions

View file

@ -63,11 +63,13 @@ sysSettings::sysSettings(const wxString &name) : wxConfig(name)
sysSettings::~sysSettings()
{
#ifdef WIN32
wxRegKey key(wxRegKey::HKCU, "Software\\"+appName);
wxString fn= wxStandardPaths::Get().GetUserConfigDir() + wxT("\\postgresql\\autoSaveConfig.reg");
if (wxFileName::FileExists(fn)) wxRemoveFile(fn);
key.Export(fn);
#endif
if(defaultSettings)
{
delete defaultSettings;