Project

General

Profile

Actions

Bug #1245

closed

QueryModel::setData() does not properly handle bool values

Added by Mike Trinkala about 12 years ago. Updated almost 12 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Pieter Libin
Target version:
Start date:
04/19/2012
Due date:
% Done:

0%

Estimated time:

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

wt_bool.cpp (1.54 KB) wt_bool.cpp Mike Trinkala, 04/19/2012 11:01 PM
Actions #1

Updated by Koen Deforche almost 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

Actions #2

Updated by Pieter Libin almost 12 years ago

  • Status changed from InProgress to Resolved
Actions #3

Updated by Koen Deforche almost 12 years ago

  • Status changed from Resolved to Closed

Released in Wt 3.2.2

Actions

Also available in: Atom PDF