Project

General

Profile

WTableView::setColumnHidden - different behavior with bots?

Added by Magnus Arntzen over 13 years ago

Hi guys.

I have the following scenario:

WTableView *table = new WTableView();

table->setModel(myModel); //3 columns

table->setColumnWidth(0, 100);

table->setColumnWidth(1, 200);

table->setColumnWidth(2, 300);

table->setColumnHidden(1, true); //SEGFAULT if a bot loads the page.

No errors for regular users, only bots.

Is there a different behavior of setColumnHidden and setColumnWidth since it does not segfault on the latter?

-Magnus


Replies (1)

RE: WTableView::setColumnHidden - different behavior with bots? - Added by Koen Deforche over 13 years ago

Hey Magnus,

Gotcha. setColumnHidden() indead broke plain HTML mode.

Fixed in my git copy. Will come along with other changes to our public git repo.

There is no real difference with setColumnWidth() no, they are similar (but setHidden(false); setHidden(true) will preserve the original (resized) column width).

Regards,

koen

    (1-1/1)