diff options
author | Paul Davis <paul@linuxaudiosystems.com> | 2012-05-15 12:17:17 +0000 |
---|---|---|
committer | Paul Davis <paul@linuxaudiosystems.com> | 2012-05-15 12:17:17 +0000 |
commit | 350718cd14705ec0bbfa7185bbdb407f441eeb80 (patch) | |
tree | 64c41e230ffcea555b64932203fc90a625cd09cf /gtk2_ardour | |
parent | f87b5dd23e8fd3cb32c1c8e1859e805037241412 (diff) |
disallow colons in snapshot names (from colinf)
git-svn-id: svn://localhost/ardour2/branches/2.0-ongoing@12288 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 250a4998b4..37cc2fb9a5 100644 --- a/gtk2_ardour/ardour_ui.cc +++ b/gtk2_ardour/ardour_ui.cc @@ -2013,7 +2013,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); } @@ -2035,6 +2035,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; + } save_state (snapname, switch_to_it); } break; |