From 618fa78a5aeaa498c012bca5dd73006a4a2b1a35 Mon Sep 17 00:00:00 2001 From: satbaby Date: Fri, 2 Nov 2012 21:50:43 +0100 Subject: [PATCH] src/neutrino.cpp:timeshiftDir : fix autodelete --- src/neutrino.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/neutrino.cpp b/src/neutrino.cpp index 45feb2504..a8db601d1 100644 --- a/src/neutrino.cpp +++ b/src/neutrino.cpp @@ -547,7 +547,9 @@ int CNeutrinoApp::loadSetup(const char * fname) std::string filename = e->d_name; if ((filename.find("_temp.ts") == filename.size() - 8) || (filename.find("_temp.xml") == filename.size() - 9)) { - remove(filename.c_str()); + std::string timeshiftDir_filename= timeshiftDir; + timeshiftDir_filename+= "/" + filename; + remove(timeshiftDir_filename.c_str()); } } closedir(d);