Changeset 866d1fe71 in mythtv


Ignore:
Timestamp:
Dec 11, 2013, 9:31:34 AM (11 years ago)
Author:
Stuart Morgan <smorgan@…>
Branches:
fixes/0.27
Children:
fa5599d185
Parents:
f7852552a
git-author:
Stuart Morgan <smorgan@…> (12/11/13 09:31:34)
git-committer:
Stuart Morgan <smorgan@…> (12/11/13 17:28:55)
Message:

Fix segfault in Schedule Editor. Not all recording rules are associated with a program and this pointer therefore needs to be checked first

File:
1 edited

Legend:

Unmodified
Added
Removed
  • mythtv/programs/mythfrontend/scheduleeditor.cpp

    rf7852552a r866d1fe71  
    14601460    lookup->SetStep(kLookupSearch);
    14611461    lookup->SetType(kMetadataRecording);
    1462     if ((m_recInfo->GetCategoryType() == ProgramInfo::kCategoryMovie) ||
     1462    if ((m_recInfo && m_recInfo->GetCategoryType() == ProgramInfo::kCategoryMovie) ||
    14631463        (m_seasonSpin->GetIntValue() == 0 &&
    14641464         m_episodeSpin->GetIntValue() == 0))
     
    16601660    lookup->SetAutomatic(true);
    16611661    lookup->SetHandleImages(false);
    1662     if ((m_recInfo->GetCategoryType() == ProgramInfo::kCategoryMovie) ||
     1662    if ((m_recInfo && m_recInfo->GetCategoryType() == ProgramInfo::kCategoryMovie) ||
    16631663        (m_seasonSpin->GetIntValue() == 0 &&
    16641664         m_episodeSpin->GetIntValue() == 0))
Note: See TracChangeset for help on using the changeset viewer.