Changeset 139 for trunk


Ignore:
Timestamp:
13/01/08 17:35:24 (6 years ago)
Author:
guyru
Message:

fixed the segmentation fault on exit (bug #1841853)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/MainFrame.cpp

    r138 r139  
    364364        for (int i = ID_ACES; i<=ID_CHANCE; i++) { 
    365365                temp = ((wxButton *)FindWindow(i)); 
    366                 ((wxWindow *)FindWindow(i))->PushEventHandler(m_evt_handler); 
    367                 ((wxWindow *)FindWindow(i))->Connect(wxEVT_LEAVE_WINDOW, wxMouseEventHandler(MainFrameEvtHandler::OnScoreMouseLeave), temp, m_evt_handler); 
    368                 ((wxWindow *)FindWindow(i))->Connect(wxEVT_ENTER_WINDOW, wxMouseEventHandler(MainFrameEvtHandler::OnScoreMouseEnter), temp, m_evt_handler); 
     366                temp->Connect(wxEVT_LEAVE_WINDOW, wxMouseEventHandler(MainFrameEvtHandler::OnScoreMouseLeave), NULL, m_evt_handler); 
     367                temp->Connect(wxEVT_ENTER_WINDOW, wxMouseEventHandler(MainFrameEvtHandler::OnScoreMouseEnter), NULL, m_evt_handler); 
    369368        } 
    370369} 
Note: See TracChangeset for help on using the changeset viewer.