Просмотр исходного кода

UI: Prevent import failure for collections with slash in name

Ryan Foster 5 лет назад
Родитель
Сommit
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) {