0
0
mirror of https://github.com/obsproject/obs-studio.git synced 2024-09-20 21:13:04 +02:00

UI: Prevent import failure for collections with slash in name

This commit is contained in:
Ryan Foster 2020-11-25 02:12:26 -05:00 committed by Jim
parent 2d1b0666af
commit 714c652dc9

View File

@ -578,6 +578,7 @@ void OBSImporter::importCollections()
QString file = res["name"].string_value().c_str();
file.replace(" ", "_");
file.replace("/", "_");
bool safe = !CheckConfigExists(dst, file);
int x = 1;
while (!safe) {