diff options
author | Paul Davis <paul@linuxaudiosystems.com> | 2010-03-13 19:22:34 +0000 |
---|---|---|
committer | Paul Davis <paul@linuxaudiosystems.com> | 2010-03-13 19:22:34 +0000 |
commit | f85161c5d0ac5649bf33cf7d165213295a2a9d16 (patch) | |
tree | 948c4b7f1ce631dfd23999ea56fc29ec9e209780 /libs/ardour/file_source.cc | |
parent | e10f59f96c429a88419a7caddfeaff75a8b19df4 (diff) |
"Ardour" -> PROGRAM_NAME change for libardour and setup for gtk2_ardour
git-svn-id: svn://localhost/ardour2/branches/3.0@6757 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'libs/ardour/file_source.cc')
-rw-r--r-- | libs/ardour/file_source.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libs/ardour/file_source.cc b/libs/ardour/file_source.cc index caddc12b5b..c00e3ddbc3 100644 --- a/libs/ardour/file_source.cc +++ b/libs/ardour/file_source.cc @@ -386,8 +386,8 @@ FileSource::set_source_name (const ustring& newname, bool destructive) } // Test whether newpath exists, if yes notify the user but continue. - if (access(newpath.c_str(),F_OK) == 0) { - error << _("Programming error! Ardour tried to rename a file over another file! It's safe to continue working, but please report this to the developers.") << endmsg; + if (Glib::file_test (newpath, Glib::FILE_TEST_EXISTS)) { + error << string_compose (_("Programming error! %1 tried to rename a file over another file! It's safe to continue working, but please report this to the developers."), PROGRAM_NAME) << endmsg; return -1; } |