diff --git a/platformspecifics/u32/u32backend.cpp b/platformspecifics/u32/u32backend.cpp index 5919a9d..90150d7 100644 --- a/platformspecifics/u32/u32backend.cpp +++ b/platformspecifics/u32/u32backend.cpp @@ -29,12 +29,12 @@ WId PlatformBackend::getActiveWID() { return (WId)GetForegroundWindow(); } -QString illegal(QStringLiteral("<>:\"/\|?*")); +QString illegal(QStringLiteral("<>:\"/\\|?*")); QStringList illegalNames({ "CON", "PRN", "AUX", "NUL", "COM1", "COM2", "COM3", "COM4", "COM5", "COM6", "COM7", "COM8", "COM9", "LPT1", "LPT2", "LPT3", "LPT4", "LPT5", "LPT6", "LPT7", "LPT8", "LPT9" }); -bool PlatformBackend::filenamValid(QString name) { - unsigned int periods = 0; +bool PlatformBackend::filenameValid(QString name) { + int periods = 0; for (QChar c : name) { if (c == '.') periods++; if (illegal.contains(c)) return false;