diff options
| author | Carl Hetherington <cth@carlh.net> | 2018-07-24 23:04:01 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2018-07-24 23:04:01 +0100 |
| commit | bfc79f85fa979a9c3b0f17f2040e0ae0181cb733 (patch) | |
| tree | 13376dd353fb2444dac3c9472a700a05b9af7cda /src | |
| parent | 78e3f86292c133a96fd39842913674c27be059e4 (diff) | |
Don't start with all possible content tabs visible.
Diffstat (limited to 'src')
| -rw-r--r-- | src/wx/content_panel.cc | 2 | ||||
| -rw-r--r-- | src/wx/content_sub_panel.cc | 1 |
2 files changed, 1 insertions, 2 deletions
diff --git a/src/wx/content_panel.cc b/src/wx/content_panel.cc index 820372728..05079604b 100644 --- a/src/wx/content_panel.cc +++ b/src/wx/content_panel.cc @@ -379,7 +379,7 @@ ContentPanel::selection_changed () } } - if (!done) { + if (!done && _notebook->GetPageCount() > 0) { _notebook->SetSelection (0); } diff --git a/src/wx/content_sub_panel.cc b/src/wx/content_sub_panel.cc index a60a65707..a30d3cfce 100644 --- a/src/wx/content_sub_panel.cc +++ b/src/wx/content_sub_panel.cc @@ -37,7 +37,6 @@ ContentSubPanel::ContentSubPanel (ContentPanel* p, wxString name) , _sizer (new wxBoxSizer (wxVERTICAL)) , _name (name) { - p->notebook()->AddPage (this, _name, false); SetScrollRate (-1, 8); SetSizer (_sizer); } |
