dispose of old control for new one
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@31740 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -404,6 +404,11 @@ void wxQTMediaBackend::FinishLoad()
|
|||||||
Rect bounds = wxMacGetBoundsForControl(m_ctrl,
|
Rect bounds = wxMacGetBoundsForControl(m_ctrl,
|
||||||
m_ctrl->GetPosition(),
|
m_ctrl->GetPosition(),
|
||||||
m_ctrl->GetSize());
|
m_ctrl->GetSize());
|
||||||
|
|
||||||
|
//Dispose of old control for new one
|
||||||
|
if (GetControlPeer(m_ctrl) && GetControlPeer(m_ctrl)->Ok() )
|
||||||
|
GetControlPeer(m_ctrl)->Dispose();
|
||||||
|
|
||||||
//Options-
|
//Options-
|
||||||
//kMovieControlOptionXXX
|
//kMovieControlOptionXXX
|
||||||
//HideController - hide the movie controller
|
//HideController - hide the movie controller
|
||||||
|
Reference in New Issue
Block a user