void MythUIStateTracker::GetState(QVariantMap &state) { MythUIStateTracker* uistate = MythUIStateTracker::GetMythUIStateTracker(); gUIStateLock->lock(); state = uistate->m_state; state.detach(); gUIStateLock->unlock(); }