From 97c91cae3e4dd16bc9b1d42b3dd789ae1120c7b7 Mon Sep 17 00:00:00 2001 From: Roman Telezhynskyi Date: Sat, 23 Jan 2021 14:03:44 +0200 Subject: [PATCH] Fix incorrect filename regular expressions. --- ChangeLog.txt | 1 + src/app/valentina/dialogs/dialogsavelayout.cpp | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/ChangeLog.txt b/ChangeLog.txt index 94d927a2e..8df32d525 100644 --- a/ChangeLog.txt +++ b/ChangeLog.txt @@ -39,6 +39,7 @@ - Fix removing a pin in the Seam Allowance tool dialog. - Fix label size for case with two pins. - Fix crash while synchronize measurements. +- Fix incorrect filename regular expressions. # Version 0.6.1 October 23, 2018 - [#885] Regression. Broken support for multi size measurements. diff --git a/src/app/valentina/dialogs/dialogsavelayout.cpp b/src/app/valentina/dialogs/dialogsavelayout.cpp index 91185b11c..9c926967e 100644 --- a/src/app/valentina/dialogs/dialogsavelayout.cpp +++ b/src/app/valentina/dialogs/dialogsavelayout.cpp @@ -43,9 +43,9 @@ #include #ifndef Q_OS_WIN - Q_GLOBAL_STATIC_WITH_ARGS(const QString, baseFilenameRegExp, (QLatin1String("^[^/]+$"))) + Q_GLOBAL_STATIC_WITH_ARGS(const QString, baseFilenameRegExp, (QLatin1String("^[^\\/]+$"))) #else - Q_GLOBAL_STATIC_WITH_ARGS(const QString, baseFilenameRegExp, (QLatin1String("^[^\\:?\"*|/<>]+$"))) + Q_GLOBAL_STATIC_WITH_ARGS(const QString, baseFilenameRegExp, (QLatin1String("^[^\\:?\"*|\\/<>]+$"))) #endif bool DialogSaveLayout::havePdf = false;