From 91af219d1f67ba9a18653d163a2ba6de43ac7802 Mon Sep 17 00:00:00 2001 From: tiresiasfromthebai Date: Sat, 18 Jul 2026 00:10:04 +0200 Subject: [PATCH] Don't paint the progress indicator when it is stopped paintEvent() drew the spinner (frozen at angle 0) even with the timer inactive, defeating stop()'s stated intent to erase the indicator from the view. The idle indicator sat frozen in the toolbar. Co-Authored-By: Claude Fable 5 --- src/QProgressIndicator.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/QProgressIndicator.cpp b/src/QProgressIndicator.cpp index 07cd9c9..b11a1f9 100644 --- a/src/QProgressIndicator.cpp +++ b/src/QProgressIndicator.cpp @@ -44,6 +44,7 @@ void QProgressIndicator::paintEvent(QPaintEvent* e) { if (!_timer->isActive()) { _angle = 0; _scale = 0.0f; + return; // Draw nothing when stopped. stop() expects the indicator to be erased from the view. } QPainter painter(this);