diff --git a/src/gui/record_setup.cpp b/src/gui/record_setup.cpp index c4487b9db..04e5c69f2 100644 --- a/src/gui/record_setup.cpp +++ b/src/gui/record_setup.cpp @@ -34,13 +34,12 @@ #endif -#include "gui/record_setup.h" - #include #include #include +#include "gui/record_setup.h" #include "gui/filebrowser.h" #include @@ -49,6 +48,7 @@ #include #include +#include #include @@ -97,6 +97,7 @@ int CRecordSetup::exec(CMenuTarget* parent, const std::string &actionKey) safe_mkdir(timeshiftDir); printf("New timeshift dir: %s\n", timeshiftDir); } + CRecordManager::getInstance()->SetTimeshiftDirectory(timeshiftDir); } return res; } @@ -128,6 +129,7 @@ int CRecordSetup::exec(CMenuTarget* parent, const std::string &actionKey) printf("New timeshift == rec dir\n"); } printf("New timeshift dir: %s\n", timeshiftDir); + CRecordManager::getInstance()->SetTimeshiftDirectory(timeshiftDir); } } return res;