1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-04-30 15:49:41 +02:00

ProjectFileIO::CloseProject does not assert that project was open

This commit is contained in:
Paul Licameli 2020-12-06 21:25:34 -05:00
parent 38b169ab7e
commit 900bf44219

View File

@ -2180,11 +2180,9 @@ bool ProjectFileIO::OpenProject()
bool ProjectFileIO::CloseProject() bool ProjectFileIO::CloseProject()
{ {
auto &currConn = CurrConn(); auto &currConn = CurrConn();
wxASSERT(currConn);
// Protect...
if (!currConn) if (!currConn)
{ {
wxLogDebug("Closing project with no database connection");
return true; return true;
} }