mirror of
https://github.com/OPM/ResInsight.git
synced 2026-11-22 05:48:13 -06:00
Fix crash when closing production network plot
This commit is contained in:
1 parent
e418844c7c
commit
c6ad643770
1 file changed
+6
-2
@@ -188,9 +188,13 @@ RiuGroupNetworkGraphView::RiuGroupNetworkGraphView( QWidget* parent )
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
/// The scene is deleted after this view and emits selectionChanged when the selected node is removed, which
|
||||
/// would update the model from a widget being destroyed
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
RiuGroupNetworkGraphView::~RiuGroupNetworkGraphView() = default;
|
||||
RiuGroupNetworkGraphView::~RiuGroupNetworkGraphView()
|
||||
{
|
||||
disconnect( m_scene, nullptr, this, nullptr );
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
/// Rebuilds the graph. The zoom and scroll position are kept if the nodes are the same as before, so
|
||||
|
||||
Reference in new issue
Block a user