From 95040fba98929b8ab503dcfdb13f24caba75e598 Mon Sep 17 00:00:00 2001 From: Alberto Griggio Date: Fri, 15 Sep 2017 10:38:37 +0200 Subject: [PATCH] fix bug in opening a directory when the -R switch is not given --- rtgui/main.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rtgui/main.cc b/rtgui/main.cc index f5e134b5a..f85cb6084 100644 --- a/rtgui/main.cc +++ b/rtgui/main.cc @@ -640,7 +640,7 @@ int main (int argc, char **argv) printf ("Error: -gimp requires two arguments\n"); return 1; } - } else if (!remote && Glib::file_test (argv1, Glib::FILE_TEST_EXISTS)) { + } else if (!remote && Glib::file_test(argv1, Glib::FILE_TEST_EXISTS) && !Glib::file_test(argv1, Glib::FILE_TEST_IS_DIR)) { simpleEditor = true; }