summaryrefslogtreecommitdiff
path: root/src/wx/content_panel.cc
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/wx/content_panel.cc
parent78e3f86292c133a96fd39842913674c27be059e4 (diff)
Don't start with all possible content tabs visible.
Diffstat (limited to 'src/wx/content_panel.cc')
-rw-r--r--src/wx/content_panel.cc2
1 files changed, 1 insertions, 1 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);
}