From 4b57a451787d430cc1b660fc48de468ad149d49c Mon Sep 17 00:00:00 2001 From: James Crook Date: Tue, 22 Sep 2020 18:43:28 +0100 Subject: [PATCH] Bug 2540 - Measure size of correct drive. Use the TempDir for sizing, rather than as I did previously the default temp dir. --- src/Project.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Project.cpp b/src/Project.cpp index 1cacf55f4..f47148e67 100644 --- a/src/Project.cpp +++ b/src/Project.cpp @@ -128,7 +128,7 @@ AudacityProject::AudacityProject() // Make sure there is plenty of space for Sqlite files wxLongLong freeSpace = 0; - auto path = FileNames::FindDefaultPath(FileNames::Operation::Temp); + auto path = FileNames::TempDir(); if (wxGetDiskSpace(path, NULL, &freeSpace)) { if (freeSpace < wxLongLong(wxLL(100 * 1048576))) { ShowErrorDialog(nullptr,