Bug #1245
closedQueryModel::setData() does not properly handle bool values
0%
Description
- Create a TableView using a QueryModel with a boolean column
- Double click the value in the boolean column to edit it
- Press enter to save the existing value.
The underlying lexical_cast of "false" to bool will fail.
[2012-Apr-19 11:05:32.432942] 6832 [/ v5GaRLDAJpIPoJKe] [error] "WAbstractItemModel: unsupported type 'class Wt::WString'"
[2012-Apr-19 11:05:32.451944] 6832 [/ v5GaRLDAJpIPoJKe] [error] "Wt: error during event handling: boost::bad_any_cast: failed conversion using boost::any_cast"
[2012-Apr-19 11:05:32.474946] 6832 [/ v5GaRLDAJpIPoJKe] [error] "Wt: fatal error: boost::bad_any_cast: failed conversion using boost::any_cast"
Files
Updated by Koen Deforche over 12 years ago
- Status changed from New to InProgress
- Assignee set to Pieter Libin
- Target version set to 3.2.2
Pieter,
This should be implemented in WBoostAny.C: convertAnyToAny() : conversion from a string to a bool (type == typeid(bool)).
koen
Updated by Pieter Libin over 12 years ago
- Status changed from InProgress to Resolved
Updated by Koen Deforche over 12 years ago
- Status changed from Resolved to Closed
Released in Wt 3.2.2