Merge pull request #1437 from pkviet/viewrec

UI: Fix path for File > Show Recordings
master
Jim 2018-08-19 17:19:24 -07:00 committed by GitHub
commit 7241366ad8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 6 additions and 2 deletions

View File

@ -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));
}