A fix for wxTaskBarIcon (temporary wxFrame interfering with app shutdown);
added event handler for tbtest.cpp so it'll quit properly git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@3330 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -166,10 +166,16 @@ bool wxTaskBarIcon::PopupMenu(wxMenu *menu) //, int x, int y);
|
||||
win = new wxFrame(NULL, -1, "", wxPoint(x,y), wxSize(-1,-1), 0);
|
||||
win->PushEventHandler(this);
|
||||
|
||||
// Remove from record of top-level windows, or will confuse wxWindows
|
||||
// if we try to exit right now.
|
||||
wxTopLevelWindows.DeleteObject(win);
|
||||
|
||||
rval = win->PopupMenu(menu, 0, 0);
|
||||
|
||||
win->PopEventHandler(FALSE);
|
||||
win->Destroy();
|
||||
delete win;
|
||||
|
||||
return rval;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user