Changeset 101


Ignore:
Timestamp:
03/08/07 08:49:00 (6 years ago)
Author:
guyru
Message:

final fix for bug #1700729 under windows

Location:
trunk/OpenYahtzee
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/OpenYahtzee/openyahtzee.kdevses

    r98 r101  
    1010  </Doc1> 
    1111  <Doc2 NumberOfViews="1" URL="file:///home/guy/workspace/openyahtzee/trunk/OpenYahtzee/src/MainFrame.cpp" > 
    12    <View0 line="563" Type="Source" /> 
     12   <View0 line="509" Type="Source" /> 
    1313  </Doc2> 
    1414  <Doc3 NumberOfViews="1" URL="file:///home/guy/workspace/openyahtzee/trunk/OpenYahtzee/src/MainFrame.h" > 
    15    <View0 line="105" Type="Source" /> 
     15   <View0 Type="Source" /> 
    1616  </Doc3> 
    1717  <Doc4 NumberOfViews="1" URL="file:///home/guy/workspace/openyahtzee/trunk/OpenYahtzee/src/About.h" > 
     
    1919  </Doc4> 
    2020  <Doc5 NumberOfViews="1" URL="file:///home/guy/workspace/openyahtzee/trunk/OpenYahtzee/src/UtilityFunctions.h" > 
    21    <View0 line="0" Type="Source" /> 
     21   <View0 line="30" Type="Source" /> 
    2222  </Doc5> 
    2323 </DocsAndViews> 
  • trunk/OpenYahtzee/src/MainFrame.cpp

    r98 r101  
    506506void MainFrame::OnRollButton (wxCommandEvent& event) 
    507507{ 
    508         if (event.GetEventType() == wxEVT_ENABLE_ROLL) { 
     508        if (event.GetEventType() == wxEVT_IDLE) { 
    509509                m_skiproll = false; 
     510                Disconnect(wxEVT_IDLE,  wxCommandEventHandler(MainFrame::OnRollButton)); 
    510511                return; 
    511512        } 
     
    562563        m_yahtzeebonus = false; //if we scored yahtzee bonus before we don't care anymore. 
    563564         
    564         //queue the event which will reset m_skiproll 
    565         event.SetEventType(wxEVT_ENABLE_ROLL); 
    566         wxEvtHandler::AddPendingEvent(event); 
     565        Connect(wxEVT_IDLE, wxCommandEventHandler(MainFrame::OnRollButton)); 
    567566} 
    568567 
Note: See TracChangeset for help on using the changeset viewer.