Project

General

Profile

WTableView::removeRow() Debug Assertion Failed

Added by Stefan Lanz over 10 years ago

Hello,

I have a WTableView with a WStandardItemModel which selection operates on rows.

If I try to remove a selected row with

m_tableView->model()->removeRow(m_tableView->selectedIndexes().begin()->row());

it results in a debug assertion failure in the WSignal class by the call of WAbstractItemModel::rowsAboutToBeRemoved().emit(parent, first, last);

In the end it's a Boost Debug assertion in signal_template.hpp.

Do you might know what the cause of the problem could be? I've tried the two latest Wt releases each with Boost 1.55 and 1.57. My application was compiled with the same Boost version as Wt.

Thank you

Stefan