From de22846a20b785a94c2c9371f2b2849a3b6be27d Mon Sep 17 00:00:00 2001 From: lltcggie Date: Sat, 7 May 2016 17:10:30 +0900 Subject: [PATCH] =?UTF-8?q?GUI=E3=81=A7=E5=85=A5=E5=8A=9B=E3=83=91?= =?UTF-8?q?=E3=82=B9=E3=81=AB=E3=82=88=E3=81=A3=E3=81=A6=E3=81=AF=E5=BC=B7?= =?UTF-8?q?=E5=88=B6=E7=B5=82=E4=BA=86=E3=81=99=E3=82=8B=E3=83=90=E3=82=B0?= =?UTF-8?q?=E3=82=92=E4=BF=AE=E6=AD=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- waifu2x-caffe-gui/MainDialog.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/waifu2x-caffe-gui/MainDialog.cpp b/waifu2x-caffe-gui/MainDialog.cpp index 1f41d96..e0bdbb2 100644 --- a/waifu2x-caffe-gui/MainDialog.cpp +++ b/waifu2x-caffe-gui/MainDialog.cpp @@ -513,7 +513,7 @@ void DialogEvent::ProcessWaifu2x() const boost::filesystem::path output_path(output_str); const auto outDir = output_path.branch_path(); - if (!boost::filesystem::exists(outDir)) + if (!outDir.empty() && !boost::filesystem::exists(outDir)) { if (!boost::filesystem::create_directories(outDir)) {