Changeset 101
- Timestamp:
- 03/08/07 08:49:00 (6 years ago)
- Location:
- trunk/OpenYahtzee
- Files:
-
- 3 edited
-
openyahtzee.kdevelop.pcs (modified) (previous)
-
openyahtzee.kdevses (modified) (2 diffs)
-
src/MainFrame.cpp (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/OpenYahtzee/openyahtzee.kdevses
r98 r101 10 10 </Doc1> 11 11 <Doc2 NumberOfViews="1" URL="file:///home/guy/workspace/openyahtzee/trunk/OpenYahtzee/src/MainFrame.cpp" > 12 <View0 line="5 63" Type="Source" />12 <View0 line="509" Type="Source" /> 13 13 </Doc2> 14 14 <Doc3 NumberOfViews="1" URL="file:///home/guy/workspace/openyahtzee/trunk/OpenYahtzee/src/MainFrame.h" > 15 <View0 line="105"Type="Source" />15 <View0 Type="Source" /> 16 16 </Doc3> 17 17 <Doc4 NumberOfViews="1" URL="file:///home/guy/workspace/openyahtzee/trunk/OpenYahtzee/src/About.h" > … … 19 19 </Doc4> 20 20 <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" /> 22 22 </Doc5> 23 23 </DocsAndViews> -
trunk/OpenYahtzee/src/MainFrame.cpp
r98 r101 506 506 void MainFrame::OnRollButton (wxCommandEvent& event) 507 507 { 508 if (event.GetEventType() == wxEVT_ ENABLE_ROLL) {508 if (event.GetEventType() == wxEVT_IDLE) { 509 509 m_skiproll = false; 510 Disconnect(wxEVT_IDLE, wxCommandEventHandler(MainFrame::OnRollButton)); 510 511 return; 511 512 } … … 562 563 m_yahtzeebonus = false; //if we scored yahtzee bonus before we don't care anymore. 563 564 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)); 567 566 } 568 567
Note: See TracChangeset
for help on using the changeset viewer.
