From 31a70b669d06bf430dee4a6ffff81abf7658ee3c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?P=C3=A5l=20Hagen?= Date: Mon, 19 Oct 2015 14:55:52 +0200 Subject: [PATCH] (#467) Made sure that only move, not copy, is handled for curves and tracks --- ApplicationCode/UserInterface/RiuDragDrop.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ApplicationCode/UserInterface/RiuDragDrop.cpp b/ApplicationCode/UserInterface/RiuDragDrop.cpp index b4f2c7b5aa..0b0f10ef87 100644 --- a/ApplicationCode/UserInterface/RiuDragDrop.cpp +++ b/ApplicationCode/UserInterface/RiuDragDrop.cpp @@ -262,7 +262,7 @@ bool RiuDragDrop::handleWellLogPlotTrackDrop(Qt::DropAction action, caf::PdmObje std::vector wellLogPlotCurves = RiuTypedObjectsFromObjectGroupGetter::typedObjectsFromGroup(objectGroup); if (wellLogPlotCurves.size() > 0) { - if (action == Qt::CopyAction) + if (action == Qt::MoveAction) { RicWellLogPlotTrackFeatureImpl::moveCurvesToWellLogPlotTrack(wellLogPlotTrack, wellLogPlotCurves); return true; @@ -280,7 +280,7 @@ bool RiuDragDrop::handleWellLogPlotDrop(Qt::DropAction action, caf::PdmObjectGro std::vector wellLogPlotTracks = RiuTypedObjectsFromObjectGroupGetter::typedObjectsFromGroup(objectGroup); if (wellLogPlotTracks.size() > 0) { - if (action == Qt::CopyAction) + if (action == Qt::MoveAction) { RicWellLogPlotTrackFeatureImpl::moveTracksToWellLogPlot(wellLogPlot, wellLogPlotTracks); return true;