debug the impossible
authorPaul Davis <paul@linuxaudiosystems.com>
Thu, 15 Sep 2011 19:52:00 +0000 (19:52 +0000)
committerPaul Davis <paul@linuxaudiosystems.com>
Thu, 15 Sep 2011 19:52:00 +0000 (19:52 +0000)
git-svn-id: svn://localhost/ardour2/branches/3.0@10088 d708f5d6-7413-0410-9779-e7cbd77b26cf

gtk2_ardour/route_ui.cc

index 90de21d8546f798690174a89add161f2b3fef709..f3193f20e786b3775c238acc1c500c752919ebcd 100644 (file)
@@ -1368,10 +1368,14 @@ RouteUI::idle_remove_this_route (RouteUI *rui)
 bool
 RouteUI::verify_new_route_name (const std::string& name)
 {
-       if (name.find (':') == string::npos) {
+       string::size_type colon = name.find (':');
+
+       if (colon == string::npos) {
                return true;
        }
        
+       cerr << "There is a colon in " << name << " at pos " << colon << endl;
+
        MessageDialog colon_msg (
                _("The use of colons (':') is discouraged in track and bus names.\nDo you want to use this new name?"),
                false, MESSAGE_QUESTION, BUTTONS_NONE