summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2018-07-24 23:04:01 +0100
committerCarl Hetherington <cth@carlh.net>2018-07-24 23:04:01 +0100
commitbfc79f85fa979a9c3b0f17f2040e0ae0181cb733 (patch)
tree13376dd353fb2444dac3c9472a700a05b9af7cda /src
parent78e3f86292c133a96fd39842913674c27be059e4 (diff)
Don't start with all possible content tabs visible.
Diffstat (limited to 'src')
-rw-r--r--src/wx/content_panel.cc2
-rw-r--r--src/wx/content_sub_panel.cc1
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);
}