Fixed issue #805. Invalid regular expression for validation layout output

filename mask.
(grafted from eca61caae23937baffec715a2dff88e915dcc302)

--HG--
branch : develop
This commit is contained in:
Roman Telezhynskyi 2018-02-01 19:31:25 +02:00
parent cd1ebf434a
commit 34ffa5ab51
2 changed files with 6 additions and 1 deletions

View File

@ -87,6 +87,7 @@
- [#797] Custom seam allowance ignored in some cases.
- [#798] Formula Wizard crashes with translated increments.
- [#803] Bug in FancyTabBar widget. Wrongly calculated widget width.
- [#805] Invalid regular expression for validation layout output filename mask.
# Version 0.5.0 May 9, 2017
- [#581] User can now filter input lists by keyword in function wizard.

View File

@ -41,7 +41,11 @@
#include <QRegularExpression>
#include <QtDebug>
const QString baseFilenameRegExp = QStringLiteral("^[\\p{L}\\p{Nd}\\-. _]+$");
#ifndef Q_OS_WIN
const QString baseFilenameRegExp = QStringLiteral("^[^/]+$");
#else
const QString baseFilenameRegExp = QStringLiteral("^[^\\:?\"*|/<>]+$");
#endif
bool DialogSaveLayout::havePdf = false;
bool DialogSaveLayout::tested = false;