diff options
Diffstat (limited to 'gtk2_ardour/export_range_markers_dialog.cc')
-rw-r--r-- | gtk2_ardour/export_range_markers_dialog.cc | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/gtk2_ardour/export_range_markers_dialog.cc b/gtk2_ardour/export_range_markers_dialog.cc index 774a956d9e..06f590758c 100644 --- a/gtk2_ardour/export_range_markers_dialog.cc +++ b/gtk2_ardour/export_range_markers_dialog.cc @@ -22,6 +22,8 @@ #include <sstream> +#include "pbd/filesystem.h" + #include "ardour/audioengine.h" #include "ardour/sndfile_helpers.h" @@ -155,7 +157,7 @@ ExportRangeMarkersDialog::is_filepath_valid(string &filepath) // directory needs to exist and be writable string dirpath = Glib::path_get_dirname (filepath); - if (::access (dirpath.c_str(), W_OK) != 0) { + if (!exists_and_writable (sys::path (dirpath))) { string txt = _("Cannot write file in: ") + dirpath; MessageDialog msg (*this, txt, false, MESSAGE_ERROR, BUTTONS_OK, true); msg.run(); |