Patch #1003174: Fixes crash when toolbar has a disabled control
authorMattia Barbon <mbarbon@cpan.org>
Sat, 28 Aug 2004 19:10:31 +0000 (19:10 +0000)
committerMattia Barbon <mbarbon@cpan.org>
Sat, 28 Aug 2004 19:10:31 +0000 (19:10 +0000)
commit6707bb940681309773b0015f553979f5075a2a1d
tree7f31488998035300b55b20f14de3b6f512267ea5
parentb3370ae5d8607256d8ac65565c64e12db2d08278
  Patch #1003174: Fixes crash when toolbar has a disabled control
from Ian Brown.

  If you put a control (e.g. a wxChoice) on a toolbar and then
later disable that control, you will get a crash. This is because
the toolbar code always calls disable on the button widget for a
toolbartool. When the tool is a control, there is no button, and
you should call disable on the control instead.
This small patch implements this logic.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@28940 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
src/motif/toolbar.cpp