浏览代码

UI: Prevent import failure for collections with slash in name

Ryan Foster 4 年之前
父节点
当前提交
714c652dc9
共有 1 个文件被更改,包括 1 次插入0 次删除
  1. 1 0
      UI/window-importer.cpp

+ 1 - 0
UI/window-importer.cpp

@@ -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) {