diff options
author | Michael Meeks <michael.meeks@collabora.com> | 2015-02-14 21:11:52 +0000 |
---|---|---|
committer | Michael Meeks <michael.meeks@collabora.com> | 2015-04-09 22:21:39 +0100 |
commit | 94e319834bb36b61b47d380cfbfaa3337c1dbea9 (patch) | |
tree | 4aba8c1dbc1921aa8674bdacb71de39f13d873d0 /vcl/source/app/svapp.cxx | |
parent | 125895c355ebc9f60e792cdfffdf790c10c950cc (diff) |
vclref: re-work mbInDtor handling, add IsDisposed method and more.
Change-Id: I4b522e0df372d61d8bb7bbcd4b0629c4412cae06
Diffstat (limited to 'vcl/source/app/svapp.cxx')
-rw-r--r-- | vcl/source/app/svapp.cxx | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/vcl/source/app/svapp.cxx b/vcl/source/app/svapp.cxx index 1c4eba9edb80..4c3ba1cf994b 100644 --- a/vcl/source/app/svapp.cxx +++ b/vcl/source/app/svapp.cxx @@ -1633,7 +1633,12 @@ void Application::setDeInitHook(Link const & hook) { void ImplDelData::AttachToWindow( const vcl::Window* pWindow ) { if( pWindow ) - const_cast<vcl::Window*>(pWindow)->ImplAddDel( this ); + { + if( pWindow->IsDisposed() ) + mbDel = true; + else + const_cast<vcl::Window*>(pWindow)->ImplAddDel( this ); + } } // define dtor for ImplDelData |