Fix setting timeshift dif from menu

git-svn-id: file:///home/bas/coolstream_public_svn/THIRDPARTY/applications/neutrino-beta@1578 e54a6e83-5905-42d5-8d5c-058d10e6a962
This commit is contained in:
focus
2011-07-21 11:11:57 +00:00
parent 5bed15f645
commit bd6a48bf14

View File

@@ -34,13 +34,12 @@
#endif #endif
#include "gui/record_setup.h"
#include <global.h> #include <global.h>
#include <neutrino.h> #include <neutrino.h>
#include <mymenu.h> #include <mymenu.h>
#include "gui/record_setup.h"
#include "gui/filebrowser.h" #include "gui/filebrowser.h"
#include <gui/widget/icons.h> #include <gui/widget/icons.h>
@@ -49,6 +48,7 @@
#include <gui/widget/stringinput_ext.h> #include <gui/widget/stringinput_ext.h>
#include <driver/screen_max.h> #include <driver/screen_max.h>
#include <driver/record.h>
#include <system/debug.h> #include <system/debug.h>
@@ -97,6 +97,7 @@ int CRecordSetup::exec(CMenuTarget* parent, const std::string &actionKey)
safe_mkdir(timeshiftDir); safe_mkdir(timeshiftDir);
printf("New timeshift dir: %s\n", timeshiftDir); printf("New timeshift dir: %s\n", timeshiftDir);
} }
CRecordManager::getInstance()->SetTimeshiftDirectory(timeshiftDir);
} }
return res; return res;
} }
@@ -128,6 +129,7 @@ int CRecordSetup::exec(CMenuTarget* parent, const std::string &actionKey)
printf("New timeshift == rec dir\n"); printf("New timeshift == rec dir\n");
} }
printf("New timeshift dir: %s\n", timeshiftDir); printf("New timeshift dir: %s\n", timeshiftDir);
CRecordManager::getInstance()->SetTimeshiftDirectory(timeshiftDir);
} }
} }
return res; return res;