From a2701525891f69cc810ed370dd54ac76944b1d0b Mon Sep 17 00:00:00 2001 From: David Robillard Date: Sat, 14 Jan 2012 21:47:32 +0000 Subject: Replace some non-portable stuff with glib equivalents. git-svn-id: http://svn.drobilla.net/lad/trunk/ingen@3947 a436a847-0d15-0410-975c-d299462d15a1 --- src/gui/LoadPatchWindow.cpp | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'src/gui/LoadPatchWindow.cpp') diff --git a/src/gui/LoadPatchWindow.cpp b/src/gui/LoadPatchWindow.cpp index 33094bbd..64e6aa4e 100644 --- a/src/gui/LoadPatchWindow.cpp +++ b/src/gui/LoadPatchWindow.cpp @@ -15,8 +15,6 @@ * 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */ -#include -#include #include #include #include @@ -86,10 +84,8 @@ LoadPatchWindow::LoadPatchWindow(BaseObjectType* cobject, // Add global examples directory to "shortcut folders" (bookmarks) const string examples_dir = Shared::data_file_path("patches"); - DIR* d = opendir(examples_dir.c_str()); - if (d != NULL) { + if (Glib::file_test(examples_dir, Glib::FILE_TEST_IS_DIR)) { add_shortcut_folder(examples_dir); - closedir(d); } } -- cgit v1.2.1