diff options
Diffstat (limited to 'api/logic')
-rw-r--r-- | api/logic/BaseInstance.cpp | 2 | ||||
-rw-r--r-- | api/logic/FileSystem.cpp | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/api/logic/BaseInstance.cpp b/api/logic/BaseInstance.cpp index 098407dc..7ddcc549 100644 --- a/api/logic/BaseInstance.cpp +++ b/api/logic/BaseInstance.cpp @@ -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!!! diff --git a/api/logic/FileSystem.cpp b/api/logic/FileSystem.cpp index 7e3c1841..192d868b 100644 --- a/api/logic/FileSystem.cpp +++ b/api/logic/FileSystem.cpp @@ -294,7 +294,7 @@ QString NormalizePath(QString path) } } -QString badFilenameChars = "\"\\/?<>:*|!+"; +QString badFilenameChars = "\"\\/?<>:*|!+\r\n"; QString RemoveInvalidFilenameChars(QString string, QChar replaceWith) { |