From f85161c5d0ac5649bf33cf7d165213295a2a9d16 Mon Sep 17 00:00:00 2001 From: Paul Davis Date: Sat, 13 Mar 2010 19:22:34 +0000 Subject: "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 --- libs/ardour/file_source.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'libs/ardour/file_source.cc') 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; } -- cgit v1.2.3