summaryrefslogtreecommitdiffstats
path: root/src/widgets
diff options
context:
space:
mode:
authorMarc Mutz <marc.mutz@kdab.com>2014-09-14 02:29:22 +0200
committerGiuseppe D'Angelo <giuseppe.dangelo@kdab.com>2014-09-23 15:30:54 +0200
commita2b453502c657dcc4e6926e4cdfec9d143bdb90c (patch)
tree644c236c81bb11b25543d82a69254f78c54474e5 /src/widgets
parent181980d4a7a5573b0690eb28813c542a05789d1a (diff)
QCalendarWidget: fix a bug when parsing date/time formats
Quoting was not reset after consuming the quoted character. This bug only manifests when a format contains two quoted characters. It's not possible to write an auto-test for this, since the format is always read from the locale. Change-Id: I39aff41f20f647c285c971b4d560f9e36d4b82fb Reviewed-by: Friedemann Kleint <Friedemann.Kleint@digia.com>
Diffstat (limited to 'src/widgets')
-rw-r--r--src/widgets/widgets/qcalendarwidget.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/widgets/widgets/qcalendarwidget.cpp b/src/widgets/widgets/qcalendarwidget.cpp
index 05f150e5ab..b281b98cb0 100644
--- a/src/widgets/widgets/qcalendarwidget.cpp
+++ b/src/widgets/widgets/qcalendarwidget.cpp
@@ -590,6 +590,7 @@ void QCalendarDateValidator::setFormat(const QString &format)
const QChar nextChar = format.at(pos);
if (quoting) {
separator += nextChar;
+ quoting = false;
} else {
SectionToken *token = 0;
if (nextChar == QLatin1Char('d')) {