Use Glib::file_test instead of sys::exists
git-svn-id: svn://localhost/ardour2/branches/3.0@12881 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
@@ -3348,7 +3348,7 @@ Session::new_midi_source_name (const string& base)
|
||||
|
||||
snprintf (buf, sizeof(buf), "%s-%u.mid", p.to_string().c_str(), cnt);
|
||||
|
||||
if (sys::exists (buf)) {
|
||||
if (Glib::file_test (buf, Glib::FILE_TEST_EXISTS)) {
|
||||
existing++;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user