mirror of
https://github.com/Ardour/ardour.git
synced 2026-01-27 07:28:17 +01:00
correct check for presence of / or \ in a session name
git-svn-id: svn://localhost/ardour2/branches/2.0-ongoing@5336 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
parent
187ec1ab29
commit
965c295451
1 changed files with 4 additions and 4 deletions
|
|
@ -1856,13 +1856,13 @@ ARDOUR_UI::snapshot_session ()
|
|||
case RESPONSE_ACCEPT:
|
||||
prompter.get_result (snapname);
|
||||
if (snapname.length()){
|
||||
if (snapname.find ('/')) {
|
||||
if (snapname.find ('/') != string::npos) {
|
||||
MessageDialog msg (_("To ensure compatibility with various systems\n"
|
||||
"snapshot names may not contain a '/' character"));
|
||||
msg.run ();
|
||||
goto again;
|
||||
}
|
||||
if (snapname.find ('\\')) {
|
||||
if (snapname.find ('\\') != string::npos) {
|
||||
MessageDialog msg (_("To ensure compatibility with various systems\n"
|
||||
"snapshot names may not contain a '\\' character"));
|
||||
msg.run ();
|
||||
|
|
@ -2354,7 +2354,7 @@ ARDOUR_UI::get_session_parameters (bool backend_audio_is_running, bool should_be
|
|||
|
||||
should_be_new = true;
|
||||
|
||||
if (session_name.find ('/')) {
|
||||
if (session_name.find ('/') != Glib::ustring::npos) {
|
||||
MessageDialog msg (*new_session_dialog, _("To ensure compatibility with various systems\n"
|
||||
"session names may not contain a '/' character"));
|
||||
msg.run ();
|
||||
|
|
@ -2362,7 +2362,7 @@ ARDOUR_UI::get_session_parameters (bool backend_audio_is_running, bool should_be
|
|||
goto try_again;
|
||||
}
|
||||
|
||||
if (session_name.find ('\\')) {
|
||||
if (session_name.find ('\\') != Glib::ustring::npos) {
|
||||
MessageDialog msg (*new_session_dialog, _("To ensure compatibility with various systems\n"
|
||||
"session names may not contain a '\\' character"));
|
||||
msg.run ();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue