From 91c292d394d46856d5ab56fafec3e8650d524091 Mon Sep 17 00:00:00 2001 From: Richard Stanway Date: Mon, 7 Aug 2017 00:40:20 +0200 Subject: [PATCH] UI: Show error if empty recording path specified Same as 937ec4d but for advanced output. --- UI/window-basic-main-outputs.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/UI/window-basic-main-outputs.cpp b/UI/window-basic-main-outputs.cpp index 1033ff63f..dbe2cd22a 100644 --- a/UI/window-basic-main-outputs.cpp +++ b/UI/window-basic-main-outputs.cpp @@ -1495,7 +1495,7 @@ bool AdvancedOutput::StartRecording() "FFFileNameWithoutSpace" : "RecFileNameWithoutSpace"); - os_dir_t *dir = path ? os_opendir(path) : nullptr; + os_dir_t *dir = path && path[0] ? os_opendir(path) : nullptr; if (!dir) { if (main->isVisible())