summaryrefslogtreecommitdiffstats
path: root/src/widgets/widgets/qabstractspinbox.cpp
diff options
context:
space:
mode:
authorErik Verbruggen <erik.verbruggen@qt.io>2018-08-09 13:14:37 +0200
committerErik Verbruggen <erik.verbruggen@qt.io>2018-08-14 13:35:16 +0000
commit30e26d258bc69018b7dd6517d816cf36d5606bd3 (patch)
tree07101126673b1f8c76296abb69e69884534ff8eb /src/widgets/widgets/qabstractspinbox.cpp
parent44b6757fe50b6bf581864d3da519a3ff60818fa8 (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