Kaydet (Commit) 627b4a4a authored tarafından Caolán McNamara's avatar Caolán McNamara

Resolves: tdf#91864 unset a dying childwindow as the active window

Change-Id: Ief014895facbc092913b3069ed04cace1e233ff0
(cherry picked from commit 8f99f936)
üst ab67914e
......@@ -177,7 +177,12 @@ void SfxChildWindow::Destroy()
{
if ( GetFrame().is() )
{
pImp->pWorkWin = NULL;
if (pImp->pWorkWin)
{
if (pImp->pWorkWin->GetActiveChild_Impl() == pWindow)
pImp->pWorkWin->SetActiveChild_Impl(NULL);
pImp->pWorkWin = NULL;
}
try
{
::com::sun::star::uno::Reference < ::com::sun::star::util::XCloseable > xClose( GetFrame(), ::com::sun::star::uno::UNO_QUERY );
......
......@@ -322,6 +322,7 @@ public:
bool IsVisible_Impl( sal_uInt16 nMode ) const;
bool IsFloating( sal_uInt16 nId );
void SetActiveChild_Impl( vcl::Window *pChild );
VclPtr<vcl::Window> GetActiveChild_Impl() const { return pActiveChild; }
bool ActivateNextChild_Impl( bool bForward = true );
bool AllowChildWindowCreation_Impl( const SfxChildWin_Impl& i_rCW ) const;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment