diff options
author | Carl Hetherington <carl@carlh.net> | 2011-10-17 20:36:01 +0000 |
---|---|---|
committer | Carl Hetherington <carl@carlh.net> | 2011-10-17 20:36:01 +0000 |
commit | 6e78d33a369382caf5049e11c3fa0f30933d6062 (patch) | |
tree | 31452fd6862f4ac05bc96b1fc116bead8af28d60 /gtk2_ardour | |
parent | c7d2497e2badd3fabd29fe3b1c55978f276bbbf9 (diff) |
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
Diffstat (limited to 'gtk2_ardour')
-rw-r--r-- | gtk2_ardour/ardour_ui.cc | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/gtk2_ardour/ardour_ui.cc b/gtk2_ardour/ardour_ui.cc index 1130177fe2..5161a6626d 100644 --- a/gtk2_ardour/ardour_ui.cc +++ b/gtk2_ardour/ardour_ui.cc @@ -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; |