Details
Description
Hi,
Reading value with a default value will ASSERT in debug mode if the key is empty.
The code (from the doc !!):
QSettings settings; settings.value("").toInt();
will assert and exit the program on last line querying value for zebra
(same for setValue()/value(), assert is in function actualKey(), see stack trace).
Attachments
For Gerrit Dashboard: QTBUG-41812 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
96639,3 | QSettings: Prevent assert when passing empty keys. | 5.4 | qt/qtbase | Status: MERGED | +2 | 0 |