Skip to content

Commit

Permalink
GUI: DialogAbout: Fix wrong default tab bug
Browse files Browse the repository at this point in the history
The select parameter of the AddPage method of the WxNotebook need to be set to true for the page needed to be active.

Fixes #108

Refer-to: [wxWidgets: wxBookCtrlBase Class Reference](http://docs.wxwidgets.org/trunk/classwx_book_ctrl_base.html#ab47f8935c3705a452fce7d292d8181dd)
Signed-off-by: 林博仁 <[email protected]>
  • Loading branch information
brlin-tw committed Nov 1, 2017
1 parent dfaeab4 commit ed5fcbb
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/DialogAbout.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -52,10 +52,9 @@ DialogAbout::DialogAbout( wxWindow* parent, wxWindowID id, const wxString& title

m_NotebookAutorLicence = new wxNotebook( this, wxID_ANY);

// FIXME: Unable to make this page default
m_NotebookAutorLicence->AddPage(new PanelNoteBookAutors(m_NotebookAutorLicence, wxID_ANY, _T("slacka et al."), _T("data/woeusb-logo.png"), _T("github.com/slacka/WoeUSB")), _("Authors"), true);

m_NotebookAutorLicence->AddPage(new PanelNoteBookAutors(m_NotebookAutorLicence, wxID_ANY, _T("Colin GILLE / Congelli501"), _T("data/c501-logo.png"), _T("www.congelli.eu")), _("Original WinUSB Developer"), true);
m_NotebookAutorLicence->AddPage(new PanelNoteBookAutors(m_NotebookAutorLicence, wxID_ANY, _T("Colin GILLE / Congelli501"), _T("data/c501-logo.png"), _T("www.congelli.eu")), _("Original WinUSB Developer"), false);

wxString licenceStr = wxString::Format(_(
"%s is free software: you can redistribute it and/or modify"
Expand Down

0 comments on commit ed5fcbb

Please sign in to comment.