Patch from colinf to disallow colons in snapshot names
for compatibility with FAT filesystems (#4361). git-svn-id: svn://localhost/ardour2/branches/3.0@10213 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
@@ -2129,7 +2129,7 @@ ARDOUR_UI::snapshot_session (bool switch_to_it)
|
||||
|
||||
time (&n);
|
||||
localtime_r (&n, &local_time);
|
||||
strftime (timebuf, sizeof(timebuf), "%FT%T", &local_time);
|
||||
strftime (timebuf, sizeof(timebuf), "%FT%H.%M.%S", &local_time);
|
||||
prompter.set_initial_text (timebuf);
|
||||
}
|
||||
|
||||
@@ -2154,6 +2154,12 @@ ARDOUR_UI::snapshot_session (bool switch_to_it)
|
||||
msg.run ();
|
||||
goto again;
|
||||
}
|
||||
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;
|
||||
}
|
||||
}
|
||||
|
||||
vector<sys::path> p;
|
||||
|
||||
Reference in New Issue
Block a user