From 2b7709dc84ed37128c125ca7a97b2e4b2c4437e7 Mon Sep 17 00:00:00 2001 From: Brandon Dahler Date: Sun, 23 Mar 2014 20:14:43 -0500 Subject: Wrap create_directory calls in try...catch blocks. Ignores any exceptions thrown if directory exists, otherwise re-throws exception. Rebased-By: Wladimir J. van der Laan --- src/qt/intro.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/qt') diff --git a/src/qt/intro.cpp b/src/qt/intro.cpp index f342606495..3e99e941a6 100644 --- a/src/qt/intro.cpp +++ b/src/qt/intro.cpp @@ -178,7 +178,7 @@ void Intro::pickDataDirectory() } dataDir = intro.getDataDirectory(); try { - fs::create_directory(GUIUtil::qstringToBoostPath(dataDir)); + TryCreateDirectory(GUIUtil::qstringToBoostPath(dataDir)); break; } catch(fs::filesystem_error &e) { QMessageBox::critical(0, tr("Bitcoin"), -- cgit v1.2.3