From fdb622a0693982a8cb69bc1f1f3baa93ef983bc5 Mon Sep 17 00:00:00 2001 From: pkviet Date: Mon, 20 Aug 2018 01:36:17 +0200 Subject: [PATCH] UI: Fix path for File > Show Recordings In main menu, File > Show Recordings does not show the path for ffmpeg custom output when it is selected in Settings. This fixes the issue. --- UI/window-basic-main.cpp | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/UI/window-basic-main.cpp b/UI/window-basic-main.cpp index e6efbf74f..2d0b5c0e1 100644 --- a/UI/window-basic-main.cpp +++ b/UI/window-basic-main.cpp @@ -3596,9 +3596,13 @@ void OBSBasic::changeEvent(QEvent *event) void OBSBasic::on_actionShow_Recordings_triggered() { const char *mode = config_get_string(basicConfig, "Output", "Mode"); + const char *type = config_get_string(basicConfig, "AdvOut", "RecType"); + const char *adv_path = strcmp(type, "Standard") ? + config_get_string(basicConfig, "AdvOut", "FFFilePath") : + config_get_string(basicConfig, "AdvOut", "RecFilePath"); const char *path = strcmp(mode, "Advanced") ? - config_get_string(basicConfig, "SimpleOutput", "FilePath") : - config_get_string(basicConfig, "AdvOut", "RecFilePath"); + config_get_string(basicConfig, "SimpleOutput", "FilePath") : + adv_path; QDesktopServices::openUrl(QUrl::fromLocalFile(path)); }