Fix incorrect filename regular expressions.

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

View File

@ -140,6 +140,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;