summaryrefslogtreecommitdiff
path: root/gtk2_ardour/new_session_dialog.cc
diff options
context:
space:
mode:
authorPaul Davis <paul@linuxaudiosystems.com>2007-10-03 17:48:46 +0000
committerPaul Davis <paul@linuxaudiosystems.com>2007-10-03 17:48:46 +0000
commitb2d060e14af88dd1d93413b04ec5d950226e3fdd (patch)
treea61427c0b940a7b65d26ec41e6a2c9883fa727b4 /gtk2_ardour/new_session_dialog.cc
parentf14052130444e5d4585e7cf7cdac9224fd92106b (diff)
useful changes from the world of OS X failure testing
git-svn-id: svn://localhost/ardour2/branches/2.0-ongoing@2508 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'gtk2_ardour/new_session_dialog.cc')
-rw-r--r--gtk2_ardour/new_session_dialog.cc8
1 files changed, 6 insertions, 2 deletions
diff --git a/gtk2_ardour/new_session_dialog.cc b/gtk2_ardour/new_session_dialog.cc
index 151fbcae8a..e5b289a067 100644
--- a/gtk2_ardour/new_session_dialog.cc
+++ b/gtk2_ardour/new_session_dialog.cc
@@ -454,8 +454,12 @@ NewSessionDialog::set_have_engine (bool yn)
if (yn) {
m_notebook->remove_page (engine_control);
} else {
- m_notebook->append_page (engine_control, _("Audio Setup"));
- m_notebook->show_all_children();
+ // XXX this is a bit of crude hack. if we ever add or remove
+ // pages from the notebook, this is going to break.
+ if (m_notebook->get_n_pages () != 3) {
+ m_notebook->append_page (engine_control, _("Audio Setup"));
+ m_notebook->show_all_children();
+ }
}
}