diff --git a/gui/src/Visualization/VisualizationTabWidget.cpp b/gui/src/Visualization/VisualizationTabWidget.cpp index 2f4176f..148fbcb 100644 --- a/gui/src/Visualization/VisualizationTabWidget.cpp +++ b/gui/src/Visualization/VisualizationTabWidget.cpp @@ -171,6 +171,13 @@ void VisualizationTabWidget::dropMimeData(int index, const QMimeData *mimeData) if (!variables.isEmpty()) { + //Abort the requests for the variables (if any) + //Commented, because it's not sure if it's needed or not + //for (const auto& var : variables) + //{ + // sqpApp->variableController().onAbortProgressRequested(var); + //} + if (nbGraph == 1) { //This is the only graph in the previous zone, close the zone diff --git a/gui/src/Visualization/VisualizationZoneWidget.cpp b/gui/src/Visualization/VisualizationZoneWidget.cpp index b1634a7..3cb3499 100644 --- a/gui/src/Visualization/VisualizationZoneWidget.cpp +++ b/gui/src/Visualization/VisualizationZoneWidget.cpp @@ -364,6 +364,13 @@ void VisualizationZoneWidget::dropMimeData(int index, const QMimeData *mimeData) { //The drop didn't occur in the same zone + //Abort the requests for the variables (if any) + //Commented, because it's not sure if it's needed or not + //for (const auto& var : variables) + //{ + // sqpApp->variableController().onAbortProgressRequested(var); + //} + auto previousParentZoneWidget = graphWidget->parentZoneWidget(); auto nbGraph = parentDragDropContainer->countDragWidget(); if (nbGraph == 1)