mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
(#467) Made sure that only move, not copy, is handled for curves and tracks
This commit is contained in:
parent
7e1ef99146
commit
31a70b669d
@ -262,7 +262,7 @@ bool RiuDragDrop::handleWellLogPlotTrackDrop(Qt::DropAction action, caf::PdmObje
|
|||||||
std::vector<RimWellLogPlotCurve*> wellLogPlotCurves = RiuTypedObjectsFromObjectGroupGetter<RimWellLogPlotCurve>::typedObjectsFromGroup(objectGroup);
|
std::vector<RimWellLogPlotCurve*> wellLogPlotCurves = RiuTypedObjectsFromObjectGroupGetter<RimWellLogPlotCurve>::typedObjectsFromGroup(objectGroup);
|
||||||
if (wellLogPlotCurves.size() > 0)
|
if (wellLogPlotCurves.size() > 0)
|
||||||
{
|
{
|
||||||
if (action == Qt::CopyAction)
|
if (action == Qt::MoveAction)
|
||||||
{
|
{
|
||||||
RicWellLogPlotTrackFeatureImpl::moveCurvesToWellLogPlotTrack(wellLogPlotTrack, wellLogPlotCurves);
|
RicWellLogPlotTrackFeatureImpl::moveCurvesToWellLogPlotTrack(wellLogPlotTrack, wellLogPlotCurves);
|
||||||
return true;
|
return true;
|
||||||
@ -280,7 +280,7 @@ bool RiuDragDrop::handleWellLogPlotDrop(Qt::DropAction action, caf::PdmObjectGro
|
|||||||
std::vector<RimWellLogPlotTrack*> wellLogPlotTracks = RiuTypedObjectsFromObjectGroupGetter<RimWellLogPlotTrack>::typedObjectsFromGroup(objectGroup);
|
std::vector<RimWellLogPlotTrack*> wellLogPlotTracks = RiuTypedObjectsFromObjectGroupGetter<RimWellLogPlotTrack>::typedObjectsFromGroup(objectGroup);
|
||||||
if (wellLogPlotTracks.size() > 0)
|
if (wellLogPlotTracks.size() > 0)
|
||||||
{
|
{
|
||||||
if (action == Qt::CopyAction)
|
if (action == Qt::MoveAction)
|
||||||
{
|
{
|
||||||
RicWellLogPlotTrackFeatureImpl::moveTracksToWellLogPlot(wellLogPlot, wellLogPlotTracks);
|
RicWellLogPlotTrackFeatureImpl::moveTracksToWellLogPlot(wellLogPlot, wellLogPlotTracks);
|
||||||
return true;
|
return true;
|
||||||
|
Loading…
Reference in New Issue
Block a user