Don't send idle events to the windows about to be destroyed.
authorVadim Zeitlin <vadim@wxwidgets.org>
Thu, 29 Dec 2011 22:05:31 +0000 (22:05 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Thu, 29 Dec 2011 22:05:31 +0000 (22:05 +0000)
commit9df70d797b1c2b5913cc8628ca00b97d7bfeb23f
tree8e86572d948e9d5e51ceef619dbda0132b86ccaf
parenta2fb9138b2cc4795371bc5d561eee42de39f1a7d
Don't send idle events to the windows about to be destroyed.

This is useless and can apparently result in some problems as of r25877 and
r25877 (from 8 years ago) added explicit checks preventing processing such
events in wxToolBar and wxMenu. Instead, simply don't generate these events in
the first place and also remove the now unnecessary checks for them.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@70179 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
src/common/appcmn.cpp
src/common/menucmn.cpp
src/common/tbarbase.cpp