diff options
author | Paul Davis <paul@linuxaudiosystems.com> | 2007-02-28 17:14:39 +0000 |
---|---|---|
committer | Paul Davis <paul@linuxaudiosystems.com> | 2007-02-28 17:14:39 +0000 |
commit | 72f76d4b95c099a591e8dac33b15a90d6db01c60 (patch) | |
tree | ea8a3dcc345e1898233f8b1bbe46ab10238c46a5 /libs/ardour/import.cc | |
parent | 2756e72d0ddc1ba974fc67d0dd92487457b65eeb (diff) |
fix for mute button color/state caused by cut-n-paste coding, plus another access(2) bites the portability dust
git-svn-id: svn://localhost/ardour2/trunk@1532 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'libs/ardour/import.cc')
-rw-r--r-- | libs/ardour/import.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libs/ardour/import.cc b/libs/ardour/import.cc index 5c349c6ebe..25c2d4b560 100644 --- a/libs/ardour/import.cc +++ b/libs/ardour/import.cc @@ -167,7 +167,7 @@ Session::import_audiofile (import_status& status) snprintf (buf, sizeof(buf), "%s/%s.wav", sounds_dir.c_str(), basepath.c_str()); } - if (::access (buf, F_OK) == 0) { + if (Glib::file_test (buf, Glib::FILE_TEST_EXISTS)) { /* if the file already exists, we must come up with * a new name for it. for now we just keep appending |