Fix incorrect filename regular expressions.

This commit is contained in:
Roman Telezhynskyi 2021-01-23 14:03:44 +02:00
parent d325b9347a
commit 97c91cae3e
2 changed files with 3 additions and 2 deletions

View File

@ -39,6 +39,7 @@
- Fix removing a pin in the Seam Allowance tool dialog. - Fix removing a pin in the Seam Allowance tool dialog.
- Fix label size for case with two pins. - Fix label size for case with two pins.
- Fix crash while synchronize measurements. - Fix crash while synchronize measurements.
- Fix incorrect filename regular expressions.
# Version 0.6.1 October 23, 2018 # Version 0.6.1 October 23, 2018
- [#885] Regression. Broken support for multi size measurements. - [#885] Regression. Broken support for multi size measurements.

View File

@ -43,9 +43,9 @@
#include <QGlobalStatic> #include <QGlobalStatic>
#ifndef Q_OS_WIN #ifndef Q_OS_WIN
Q_GLOBAL_STATIC_WITH_ARGS(const QString, baseFilenameRegExp, (QLatin1String("^[^/]+$"))) Q_GLOBAL_STATIC_WITH_ARGS(const QString, baseFilenameRegExp, (QLatin1String("^[^\\/]+$")))
#else #else
Q_GLOBAL_STATIC_WITH_ARGS(const QString, baseFilenameRegExp, (QLatin1String("^[^\\:?\"*|/<>]+$"))) Q_GLOBAL_STATIC_WITH_ARGS(const QString, baseFilenameRegExp, (QLatin1String("^[^\\:?\"*|\\/<>]+$")))
#endif #endif
bool DialogSaveLayout::havePdf = false; bool DialogSaveLayout::havePdf = false;