diff options
author | Erik Verbruggen <erik.verbruggen@qt.io> | 2018-08-09 13:14:37 +0200 |
---|---|---|
committer | Erik Verbruggen <erik.verbruggen@qt.io> | 2018-08-14 13:35:16 +0000 |
commit | 30e26d258bc69018b7dd6517d816cf36d5606bd3 (patch) | |
tree | 07101126673b1f8c76296abb69e69884534ff8eb /src/widgets/widgets/qabstractspinbox.cpp | |
parent | 44b6757fe50b6bf581864d3da519a3ff60818fa8 (diff) |
macOS: Handle missing key in QKeySequencePrivate::decodeString()
On macOS we pull out all the modifiers up front, which in the case
of incomplete key sequences such as "Meta+Shift+" will result in
an empty string as a result. The cross-platform code does not
handle that case, so we need to exit early.
This fixes an assert in tst_QKeySequence::parseString().
An assert has been added to QKeySequencePrivate::decodeString()
to make the assumption about the 'accel' argument explicit.
Change-Id: I135e62f9051a8b899202e5fb224b5d3c77bf2062
Reviewed-by: Tor Arne Vestbø <tor.arne.vestbo@qt.io>
Diffstat (limited to 'src/widgets/widgets/qabstractspinbox.cpp')
0 files changed, 0 insertions, 0 deletions