From 53aa828c9ee6b25e88f709c2e1d6ee60420defd6 Mon Sep 17 00:00:00 2001 From: WarmUpTill Date: Sun, 29 Oct 2017 14:09:54 +0100 Subject: [PATCH] Remove invalid path warning on empty path --- file-switch.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/file-switch.cpp b/file-switch.cpp index 2e51273b..bbc3d6cf 100644 --- a/file-switch.cpp +++ b/file-switch.cpp @@ -89,7 +89,7 @@ obs_weak_source_t* getNextTransition(obs_weak_source_t* scene1, obs_weak_source_ void SwitcherData::checkSwitchInfoFromFile(bool& match, OBSWeakSource& scene, OBSWeakSource& transition) { - if (!fileIO.readEnabled) + if (!fileIO.readEnabled || fileIO.readPath.empty()) return; QFile file(QString::fromStdString(fileIO.readPath));