Changeset 143


Ignore:
Timestamp:
01/17/2008 08:17:27 PM (4 years ago)
Author:
guyru
Message:

fixed bug #1775620 (settings dialog enables roll button)

Location:
branches/openyahtzee-1.8
Files:
2 deleted
1 edited

Legend:

Unmodified
Added
Removed
  • branches/openyahtzee-1.8/src/MainFrame.cpp

    r101 r143  
    10831083        wxBoxSizer *topSizer; 
    10841084        wxFlexGridSizer *diceSizer; 
     1085        bool roll_button_enabled; 
    10851086 
    10861087        lowersection->GetStaticBox()->Destroy(); 
     
    11541155        sectionsSizer->Add(lowersection,0,wxALL,5); 
    11551156 
     1157        roll_button_enabled = FindWindow(ID_ROLL)->IsEnabled(); 
    11561158        //Change the roll button size if we need to 
    11571159        if (m_horizontallayout) { 
     
    11621164                new wxButton(FindWindow(ID_PANEL), ID_ROLL, wxT("Roll!"),wxDefaultPosition,wxSize(VERTICAL_ROLL_SIZEX,VERTICAL_ROLL_SIZEY)); 
    11631165        } 
     1166        FindWindow(ID_ROLL)->Enable(roll_button_enabled); 
    11641167         
    11651168        //BEGIN layout for the dice section of the score board 
Note: See TracChangeset for help on using the changeset viewer.