diff options
Diffstat (limited to 'recmenus.c')
-rw-r--r-- | recmenus.c | 22 |
1 files changed, 11 insertions, 11 deletions
@@ -341,17 +341,17 @@ const cTimer *cRecMenuEditTimer::GetOriginalTimer(void) { return originalTimer; } -cTimer cRecMenuEditTimer::GetTimer(void) { - cTimer t; +cTimer *cRecMenuEditTimer::GetTimer(void) { + cTimer *t = (cTimer *)originalTimer; if (timerActive) - t.SetFlags(tfActive); - else - t.SetFlags(tfNone); - t.SetDay(day); - t.SetStart(start); - t.SetStop(stop); - t.SetPriority(prio); - t.SetLifetime(lifetime); + t->SetFlags(tfActive); + else + t->ClrFlags(tfActive); + t->SetDay(day); + t->SetStart(start); + t->SetStop(stop); + t->SetPriority(prio); + t->SetLifetime(lifetime); string newFolder(folder); string newFile = originalTimer->File(); size_t found = newFile.find_last_of('~'); @@ -366,7 +366,7 @@ cTimer cRecMenuEditTimer::GetTimer(void) { newFile = *cString::sprintf("%s~%s", newFolder.c_str(), newFile.c_str()); } std::replace(newFile.begin(), newFile.end(), '/', '~'); - t.SetFile(newFile.c_str()); + t->SetFile(newFile.c_str()); return t; } |