fix: add memory guard
This commit is contained in:
@@ -224,6 +224,7 @@ void Network::keyPressEvent(QKeyEvent *event)
|
||||
|
||||
void Network::highlightEdge(QGraphicsItem* edge, bool state)
|
||||
{
|
||||
if(!edge) return;
|
||||
if(state)
|
||||
{
|
||||
static_cast<NodeEdgeGraphic*>(edge)->setColor(QColor("red"));
|
||||
|
||||
Reference in New Issue
Block a user