]> git.saurik.com Git - wxWidgets.git/commit
Don't delete wxTaskBarIcon in wxMSW wxNotificationMessage if we don't own it.
authorVadim Zeitlin <vadim@wxwidgets.org>
Tue, 11 Oct 2011 17:08:02 +0000 (17:08 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Tue, 11 Oct 2011 17:08:02 +0000 (17:08 +0000)
commit4dd8339b2a1a269284096e6bbaa9b6646774650e
treeaa6533275c06e8b402d9c039c580c869cfc32f83
parentbbcf2821a15b8dd75fcd4daa2ac91d600b23b2d1
Don't delete wxTaskBarIcon in wxMSW wxNotificationMessage if we don't own it.

wxNotificationMessage can be associated with an existing wxTaskBarIcon under
wxMSW instead of creating its own one internally and in this case the icon
must not be deleted when the notification is hidden but it was always
destroyed unconditionally by wxNotificationIconEvtHandler created by
wxAutoNotifMsgImpl.

Fix this by only creating this helper event handler if we do own the icon.

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