GH-2238 fix issues with whitespace/newlines in folder and instance names
This commit is contained in:
		| @@ -244,7 +244,7 @@ QString BaseInstance::name() const | ||||
|  | ||||
| QString BaseInstance::windowTitle() const | ||||
| { | ||||
|     return "MultiMC: " + name(); | ||||
|     return "MultiMC: " + name().replace(QRegExp("[ \n\r\t]+"), " "); | ||||
| } | ||||
|  | ||||
| // FIXME: why is this here? move it to MinecraftInstance!!! | ||||
|   | ||||
| @@ -294,7 +294,7 @@ QString NormalizePath(QString path) | ||||
|     } | ||||
| } | ||||
|  | ||||
| QString badFilenameChars = "\"\\/?<>:*|!+"; | ||||
| QString badFilenameChars = "\"\\/?<>:*|!+\r\n"; | ||||
|  | ||||
| QString RemoveInvalidFilenameChars(QString string, QChar replaceWith) | ||||
| { | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 Petr Mrázek
					Petr Mrázek