mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-01-24 05:44:10 +00:00
Dispose of FE icon data and refresh appropriate rows when necessary.
This commit is contained in:
parent
88d5bf1ae9
commit
393c98446c
@ -293,7 +293,9 @@ void CRDFCoordinator::HandleNotification(
|
||||
case HT_EVENT_NODE_DELETED_DATA:
|
||||
case HT_EVENT_NODE_DELETED_NODATA:
|
||||
{
|
||||
// delete FE data if any is there....
|
||||
// delete the FE data for a node (will be a CTreeIcon*)
|
||||
void* data = HT_GetNodeFEData ( node );
|
||||
delete data;
|
||||
break;
|
||||
}
|
||||
|
||||
@ -316,10 +318,10 @@ void CRDFCoordinator::HandleNotification(
|
||||
|
||||
case HT_EVENT_NODE_VPROP_CHANGED:
|
||||
{
|
||||
//¥¥¥make sure the node has the most up to date icon
|
||||
//¥¥¥optimization? only redraw the cell that changed
|
||||
if ( view == mTreePane->GetHTView() )
|
||||
if ( node == HT_TopNode(mTreePane->GetHTView()) )
|
||||
mTreePane->Refresh();
|
||||
else
|
||||
mTreePane->RedrawRow(node);
|
||||
break;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user