diff --git a/src/Insight/UserInterfaces/InsightWindow/Widgets/TargetMemoryInspectionPane/TargetMemoryInspectionPane.cpp b/src/Insight/UserInterfaces/InsightWindow/Widgets/TargetMemoryInspectionPane/TargetMemoryInspectionPane.cpp index 7740baa3..c1a42e19 100644 --- a/src/Insight/UserInterfaces/InsightWindow/Widgets/TargetMemoryInspectionPane/TargetMemoryInspectionPane.cpp +++ b/src/Insight/UserInterfaces/InsightWindow/Widgets/TargetMemoryInspectionPane/TargetMemoryInspectionPane.cpp @@ -296,6 +296,20 @@ namespace Bloom::Widgets callback.value() ); } + + } else { + QObject::connect( + readMemoryTask, + &InsightWorkerTask::failed, + this, + [this] { + this->refreshButton->stopSpin(); + + if (this->targetState == Targets::TargetState::STOPPED) { + this->refreshButton->setDisabled(false); + } + } + ); } this->insightWorker.queueTask(readMemoryTask);