use default playback cache if there's no project

This commit is contained in:
itsmattkc
2020-10-28 15:49:53 +11:00
parent 379a799ad9
commit 5343ec4b86
+2 -1
View File
@@ -25,6 +25,7 @@
#include "node/output/viewer/viewer.h"
#include "project/item/sequence/sequence.h"
#include "project/project.h"
#include "render/diskmanager.h"
OLIVE_NAMESPACE_ENTER
@@ -187,7 +188,7 @@ QString PlaybackCache::GetCacheDirectory() const
if (project) {
return project->cache_path();
} else {
return QString();
return DiskManager::instance()->GetDefaultCachePath();
}
}