Ticket #10388: parentalLevel_fix.diff

File parentalLevel_fix.diff, 1019 bytes (added by stuartm, 7 years ago)
  • mythtv/programs/mythfrontend/videodlg.cpp

    diff --git a/mythtv/programs/mythfrontend/videodlg.cpp b/mythtv/programs/mythfrontend/videodlg.cpp
    index 8364c0c..9d360fa 100644
    a b VideoDialog::VideoDialog(MythScreenStack *lparent, QString lname, 
    852852    m_d->m_videoList->setCurrentVideoFilter(VideoFilterSettings(true,
    853853                    lname));
    854854
     855    m_d->m_parentalLevel.SetLevel(ParentalLevel(gCoreContext->
     856                    GetNumSetting("VideoDefaultParentalLevel",
     857                            ParentalLevel::plLowest)));
     858   
    855859    StorageGroup::ClearGroupToUseCache();
    856860}
    857861
    bool VideoDialog::Create() 
    10321036
    10331037void VideoDialog::Init()
    10341038{
    1035     m_d->m_parentalLevel.SetLevel(ParentalLevel(gCoreContext->
    1036                     GetNumSetting("VideoDefaultParentalLevel",
    1037                             ParentalLevel::plLowest)));
    10381039    connect(&m_d->m_parentalLevel, SIGNAL(SigLevelChanged()),
    10391040            SLOT(reloadData()));
    10401041}