If you click in the button and no items are selected, ui->treeWidget->currentItem() return NULL.
And when the line ptr->isSelected() is executed, your program crash...
You need to add robustness.
If you click in the button and no items are selected, ui->treeWidget->currentItem() return NULL.
And when the line ptr->isSelected() is executed, your program crash...
You need to add robustness.
smemamian (31st March 2013)
Bookmarks