mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-06-19 11:54:22 -04:00
fixed possible crash due to using a deleted item
This commit is contained in:
parent
a32bcbae0a
commit
ae5929e9ad
1 changed files with 3 additions and 1 deletions
|
@ -285,7 +285,6 @@ IdDialog::IdDialog(QWidget *parent) :
|
||||||
|
|
||||||
// circles stuff
|
// 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(itemSelectionChanged()), this, SLOT(circle_selected()));
|
||||||
connect(ui->treeWidget_membership, SIGNAL(customContextMenuRequested(QPoint)), this, SLOT(CircleListCustomPopupMenu(QPoint)));
|
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.
|
// remove item if flags are not ok.
|
||||||
|
|
||||||
if(subitem && subitem->data(CIRCLEGROUP_CIRCLE_COL_GROUPFLAGS, Qt::UserRole).toUInt() != it->second)
|
if(subitem && subitem->data(CIRCLEGROUP_CIRCLE_COL_GROUPFLAGS, Qt::UserRole).toUInt() != it->second)
|
||||||
|
{
|
||||||
delete subitem ;
|
delete subitem ;
|
||||||
|
subitem = NULL ;
|
||||||
|
}
|
||||||
|
|
||||||
if(!subitem)
|
if(!subitem)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue