mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
(#592) Fixed autoscale for track move delete toggle
Also avoid to always do updateConnectedEditors on project when deleting a curve
This commit is contained in:
@@ -67,12 +67,12 @@ void RicDeleteWellLogPlotTrackFeature::onActionTriggered(bool isChecked)
|
||||
if (wellLogPlot && wellLogPlot->trackCount() > 1)
|
||||
{
|
||||
wellLogPlot->removeTrack(track);
|
||||
wellLogPlot->calculateAvailableDepthRange();
|
||||
wellLogPlot->uiCapability()->updateConnectedEditors();
|
||||
|
||||
caf::SelectionManager::instance()->removeObjectFromAllSelections(track);
|
||||
|
||||
delete track;
|
||||
|
||||
wellLogPlot->calculateAvailableDepthRange();
|
||||
wellLogPlot->zoomAllDepth();
|
||||
wellLogPlot->uiCapability()->updateConnectedEditors();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user