mirror of
https://github.com/RetroShare/RetroShare.git
synced 2024-12-16 03:14:31 -05:00
fixed possible crash due to using a deleted item
This commit is contained in:
parent
a32bcbae0a
commit
ae5929e9ad
@ -285,7 +285,6 @@ IdDialog::IdDialog(QWidget *parent) :
|
||||
|
||||
// circles stuff
|
||||
|
||||
// remove this, as it is not necessary anymore with the new display.
|
||||
//connect(ui->treeWidget_membership, SIGNAL(itemSelectionChanged()), this, SLOT(circle_selected()));
|
||||
connect(ui->treeWidget_membership, SIGNAL(customContextMenuRequested(QPoint)), this, SLOT(CircleListCustomPopupMenu(QPoint)));
|
||||
|
||||
@ -564,7 +563,10 @@ void IdDialog::loadCircleGroupMeta(const uint32_t &token)
|
||||
// remove item if flags are not ok.
|
||||
|
||||
if(subitem && subitem->data(CIRCLEGROUP_CIRCLE_COL_GROUPFLAGS, Qt::UserRole).toUInt() != it->second)
|
||||
{
|
||||
delete subitem ;
|
||||
subitem = NULL ;
|
||||
}
|
||||
|
||||
if(!subitem)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user