From 927553f6b83add18d03f4bae55421743342d5704 Mon Sep 17 00:00:00 2001 From: Taybin Rutkin Date: Fri, 1 Dec 2006 06:01:30 +0000 Subject: PBD::strip_whitespace_edges() returns the empty string if the passed string is all whitespace. This allows for some mild code cleanup. It's also declared in the PBD namespace now. sfdb-v4 implemented. Instead of fields that go across all files, there is now just one tag field where you can enter comma delimited tags. Searching for tags to follow soon. I recommend trashing your current ~/.ardour2/sfdb file. git-svn-id: svn://localhost/ardour2/trunk@1182 d708f5d6-7413-0410-9779-e7cbd77b26cf --- gtk2_ardour/visual_time_axis.cc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'gtk2_ardour/visual_time_axis.cc') diff --git a/gtk2_ardour/visual_time_axis.cc b/gtk2_ardour/visual_time_axis.cc index 24cafdbe67..20fe13603e 100644 --- a/gtk2_ardour/visual_time_axis.cc +++ b/gtk2_ardour/visual_time_axis.cc @@ -375,17 +375,17 @@ VisualTimeAxis::name_entry_changed() return; } + strip_whitespace_edges(x); + if (x.length() == 0) { name_entry.set_text (time_axis_name); return; } - strip_whitespace_edges(x); - if (!editor.get_named_time_axis(x)) { set_time_axis_name(x, this); } else { - ARDOUR_UI::instance()->popup_error (_("a track already exists with that name")); + ARDOUR_UI::instance()->popup_error (_("A track already exists with that name")); name_entry.set_text(time_axis_name); } } -- cgit v1.2.3