summaryrefslogtreecommitdiff
path: root/gtk2_ardour/new_session_dialog.cc
diff options
context:
space:
mode:
authorNick Mainsbridge <beatroute@iprimus.com.au>2008-01-08 14:13:58 +0000
committerNick Mainsbridge <beatroute@iprimus.com.au>2008-01-08 14:13:58 +0000
commit794b9debc4a70b57b806cc517ba30ccfa16cbae2 (patch)
tree56910fc493dd2c568cc8135d66c961acf9142ccf /gtk2_ardour/new_session_dialog.cc
parentf405d6cda28b41344c17e77109c0d290da2a8398 (diff)
remove duplicated code in NSD, fix keyboard focus for new session page.
git-svn-id: svn://localhost/ardour2/branches/2.0-ongoing@2840 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'gtk2_ardour/new_session_dialog.cc')
-rw-r--r--gtk2_ardour/new_session_dialog.cc5
1 files changed, 1 insertions, 4 deletions
diff --git a/gtk2_ardour/new_session_dialog.cc b/gtk2_ardour/new_session_dialog.cc
index ad92edf0b7..0bdc52113f 100644
--- a/gtk2_ardour/new_session_dialog.cc
+++ b/gtk2_ardour/new_session_dialog.cc
@@ -436,7 +436,6 @@ NewSessionDialog::NewSessionDialog()
m_treeview->signal_row_activated().connect (mem_fun (*this, &NewSessionDialog::recent_row_activated));
m_open_filechooser->signal_selection_changed ().connect (mem_fun (*this, &NewSessionDialog::file_chosen));
m_template->signal_selection_changed ().connect (mem_fun (*this, &NewSessionDialog::template_chosen));
- m_name->grab_focus();
page_set = Pages (0);
}
@@ -696,11 +695,9 @@ NewSessionDialog::notebook_page_changed (GtkNotebookPage* np, uint pagenum)
}
} else {
on_new_session_page = true;
- if (m_name->get_text() != "") {
- set_response_sensitive (Gtk::RESPONSE_NONE, true);
- }
if (m_name->get_text() == "") {
set_response_sensitive (Gtk::RESPONSE_OK, false);
+ m_name->grab_focus();
} else {
set_response_sensitive (Gtk::RESPONSE_OK, true);
}