From b1f4bf3dbb76fedda51c26df8f108e44124d20f3 Mon Sep 17 00:00:00 2001 From: itsmattkc Date: Sun, 17 Nov 2019 12:32:01 +0900 Subject: [PATCH] delete mediaindex folder on close Since we're storing media frames too with no disk space management at the moment, we'll remove the mediaindex folder too on close just for this testing period --- app/window/mainwindow/mainwindow.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/app/window/mainwindow/mainwindow.cpp b/app/window/mainwindow/mainwindow.cpp index dcd2f3b6a..42eadc73a 100644 --- a/app/window/mainwindow/mainwindow.cpp +++ b/app/window/mainwindow/mainwindow.cpp @@ -152,6 +152,7 @@ void olive::MainWindow::closeEvent(QCloseEvent *e) // FIXME: Test code - We have no cache management and the cache is very much testing only, so we delete it on close // as to not clog up HDD space QDir(GetMediaCacheLocation()).removeRecursively(); + QDir(GetMediaIndexLocation()).removeRecursively(); // End test code QMainWindow::closeEvent(e);