1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-09-17 16:50:26 +02:00

Add fix for case, when user set directory by keyboard manually.

This commit is contained in:
gera 2021-07-14 15:17:13 +03:00 committed by Dmitry Vedenko
parent c6389ad655
commit 5572678d27

View File

@ -418,6 +418,11 @@ bool DirectoriesPrefs::Validate()
} }
else { else {
/* If the directory already exists, make sure it is writable */ /* If the directory already exists, make sure it is writable */
if (!FileNames::WritableLocationCheck(mTempText->GetValue()) ||
!FileNames::WritableLocationCheck(mMacrosText->GetValue()))
{
return false;
}
wxLogNull logNo; wxLogNull logNo;
Temp.AppendDir(wxT("canicreate")); Temp.AppendDir(wxT("canicreate"));
path = Temp.GetPath(); path = Temp.GetPath();