Ticket #7716: 7716_v1.diff

File 7716_v1.diff, 3.2 KB (added by cpinkham, 14 years ago)
  • libs/libmythui/mythscreentype.h

     
    4949
    5050    void doInit(void);
    5151    void LoadInForeground(void);
     52    bool IsInitialized(void) const;
    5253
    5354    // if the widget is full screen and obscures widgets below it
    5455    bool IsFullscreen(void) const;
     
    100101    bool m_IsDeleting;
    101102    bool m_IsLoading;
    102103    bool m_IsLoaded;
     104    bool m_IsInitialized;
    103105
    104106    MythUIType *m_CurrentFocusWidget;
    105107    //TODO We are currently dependant on the internal sorting of QMap for
  • libs/libmythui/mythscreentype.cpp

     
    4545    m_IsDeleting = false;
    4646    m_IsLoading = false;
    4747    m_IsLoaded = false;
     48    m_IsInitialized = false;
    4849
    4950    // Can be overridden, of course, but default to full sized.
    5051    m_Area = GetMythMainWindow()->GetUIScreenRect();
     
    5859    m_CurrentFocusWidget = NULL;
    5960
    6061    m_ScreenStack = NULL;
     62    m_BusyPopup = NULL;
    6163    m_IsDeleting = false;
     64    m_IsLoading = false;
     65    m_IsLoaded = false;
     66    m_IsInitialized = false;
    6267
    6368    m_Area = GetMythMainWindow()->GetUIScreenRect();
    6469}
     
    297302    m_BusyPopup = NULL;
    298303}
    299304
     305bool MythScreenType::IsInitialized(void) const
     306{
     307    return m_IsInitialized;
     308}
     309
    300310void MythScreenType::doInit(void)
    301311{
    302312    CloseBusyPopup();
    303313    Init();
     314    m_IsInitialized = true;
    304315}
    305316
    306317void MythScreenType::Init(void)
  • libs/libmythui/mythuihelper.h

     
    5959    Settings *qtconfig(void);
    6060
    6161    bool IsScreenSetup(void);
     62    bool IsTopScreenInitialized(void);
    6263
    6364    // which the user may have set to be different from the raw screen size
    6465    void GetScreenSettings(float &wmult, float &hmult);
  • libs/libmythui/mythuihelper.cpp

     
    365365    return d->screenSetup;
    366366}
    367367
     368bool MythUIHelper::IsTopScreenInitialized(void)
     369{
     370        return GetMythMainWindow()->GetMainStack()->GetTopScreen()->IsInitialized();
     371}
     372
    368373void MythUIHelper::LoadQtConfig(void)
    369374{
    370375    d->language.clear();
  • programs/mythfrontend/networkcontrol.cpp

     
    629629            while ((timer.elapsed() < 10000) &&
    630630                   (GetMythUI()->GetCurrentLocation().toLower() != "playbackbox"))
    631631                usleep(10000);
     632
     633            timer.start();
     634            while ((timer.elapsed() < 10000) &&
     635                   (!GetMythUI()->IsTopScreenInitialized()))
     636                usleep(10000);
    632637        }
    633638
    634639        if (GetMythUI()->GetCurrentLocation().toLower() == "playbackbox")