mirror of
https://projects.vdr-developer.org/git/vdr-plugin-tvguide.git
synced 2023-10-05 15:01:48 +02:00
Fixed dayOfWeek error in RecMenuSearchTimerEdit
This commit is contained in:
parent
0b37464dd0
commit
463b6369d2
@ -2148,7 +2148,6 @@ cRecMenuItemDayChooser::cRecMenuItemDayChooser(cString text,
|
|||||||
this->callback = callback;
|
this->callback = callback;
|
||||||
this->indent = indent;
|
this->indent = indent;
|
||||||
height = 3 * font->Height() / 2;
|
height = 3 * font->Height() / 2;
|
||||||
// height = 2 * font->Height();
|
|
||||||
selectedDay = 0;
|
selectedDay = 0;
|
||||||
pixmapWeekdays = NULL;
|
pixmapWeekdays = NULL;
|
||||||
pixmapWeekdaysSelect = NULL;
|
pixmapWeekdaysSelect = NULL;
|
||||||
|
@ -728,6 +728,7 @@ cRecMenuSearchTimerEdit::cRecMenuSearchTimerEdit(cTVGuideSearchTimer searchTimer
|
|||||||
channelgroupIndex = -1;
|
channelgroupIndex = -1;
|
||||||
std::string dir = sT.directory;
|
std::string dir = sT.directory;
|
||||||
strncpy(directory, dir.c_str(), TEXTINPUTLENGTH);
|
strncpy(directory, dir.c_str(), TEXTINPUTLENGTH);
|
||||||
|
dayOfWeek = sT.DayOfWeek();
|
||||||
|
|
||||||
sT.GetSearchModes(&searchModes);
|
sT.GetSearchModes(&searchModes);
|
||||||
sT.GetUseChannelModes(&useChannelModes);
|
sT.GetUseChannelModes(&useChannelModes);
|
||||||
@ -832,7 +833,7 @@ void cRecMenuSearchTimerEdit::CreateMenuItems(void) {
|
|||||||
}
|
}
|
||||||
mainMenuItems.push_back(new cRecMenuItemBool(tr("Use day of week"), sT.useDayOfWeek, true, false, &sT.useDayOfWeek, rmsSearchTimerSave));
|
mainMenuItems.push_back(new cRecMenuItemBool(tr("Use day of week"), sT.useDayOfWeek, true, false, &sT.useDayOfWeek, rmsSearchTimerSave));
|
||||||
if (sT.useDayOfWeek)
|
if (sT.useDayOfWeek)
|
||||||
mainMenuItems.push_back(new cRecMenuItemDayChooser(tr("Day of week"), sT.dayOfWeek, false, &sT.dayOfWeek, 1));
|
mainMenuItems.push_back(new cRecMenuItemDayChooser(tr("Day of week"), dayOfWeek, false, &dayOfWeek, 1));
|
||||||
mainMenuItems.push_back(new cRecMenuItemBool(tr("Use in Favorites"), sT.useInFavorites, false, false, &sT.useInFavorites, rmsSearchTimerSave));
|
mainMenuItems.push_back(new cRecMenuItemBool(tr("Use in Favorites"), sT.useInFavorites, false, false, &sT.useInFavorites, rmsSearchTimerSave));
|
||||||
mainMenuItems.push_back(new cRecMenuItemBool(tr("Use as search timer"), sT.useAsSearchTimer, true, false, &sT.useAsSearchTimer, rmsSearchTimerSave));
|
mainMenuItems.push_back(new cRecMenuItemBool(tr("Use as search timer"), sT.useAsSearchTimer, true, false, &sT.useAsSearchTimer, rmsSearchTimerSave));
|
||||||
if (sT.useAsSearchTimer) {
|
if (sT.useAsSearchTimer) {
|
||||||
@ -949,7 +950,7 @@ cTVGuideSearchTimer cRecMenuSearchTimerEdit::GetSearchTimer(void) {
|
|||||||
}
|
}
|
||||||
searchTimer.SetUseDayOfWeek(sT.useDayOfWeek);
|
searchTimer.SetUseDayOfWeek(sT.useDayOfWeek);
|
||||||
if (sT.useDayOfWeek) {
|
if (sT.useDayOfWeek) {
|
||||||
searchTimer.SetDayOfWeek(sT.dayOfWeek);
|
searchTimer.SetDayOfWeek(dayOfWeek);
|
||||||
}
|
}
|
||||||
searchTimer.SetUseAsSearchTimer(sT.useAsSearchTimer);
|
searchTimer.SetUseAsSearchTimer(sT.useAsSearchTimer);
|
||||||
searchTimer.SetAction(sT.action);
|
searchTimer.SetAction(sT.action);
|
||||||
|
@ -237,6 +237,7 @@ private:
|
|||||||
int startChannel;
|
int startChannel;
|
||||||
int stopChannel;
|
int stopChannel;
|
||||||
int channelgroupIndex;
|
int channelgroupIndex;
|
||||||
|
int dayOfWeek;
|
||||||
char directory[TEXTINPUTLENGTH];
|
char directory[TEXTINPUTLENGTH];
|
||||||
int SplitChannelGroups(std::vector<std::string> *channelGroups, std::vector<std::string> *channelgroups);
|
int SplitChannelGroups(std::vector<std::string> *channelGroups, std::vector<std::string> *channelgroups);
|
||||||
public:
|
public:
|
||||||
|
Loading…
Reference in New Issue
Block a user