Browse Source

UI: Prevent import failure for collections with slash in name

Ryan Foster 4 năm trước cách đây
mục cha
commit
714c652dc9
1 tập tin đã thay đổi với 1 bổ sung0 xóa
  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();
 			QString file = res["name"].string_value().c_str();
 
 
 			file.replace(" ", "_");
 			file.replace(" ", "_");
+			file.replace("/", "_");
 			bool safe = !CheckConfigExists(dst, file);
 			bool safe = !CheckConfigExists(dst, file);
 			int x = 1;
 			int x = 1;
 			while (!safe) {
 			while (!safe) {