From adf33c3658f234ed3db46c02a8f19879d1b46c84 Mon Sep 17 00:00:00 2001 From: Magne Date: Tue, 10 Mar 2026 12:04:39 +0100 Subject: [PATCH] Refactor disconnect calls in AnimationToolBar to use explicit signal-slot disconnection The following text was seen on Ubuntu 20.24, and the text disappears after this commit: "QObject::disconnect: wildcard call disconnects from destroyed signal of QComboBox::unnamed QObject::disconnect: wildcard call disconnects from destroyed signal of QSlider::unnamed" --- Fwk/AppFwk/cafAnimControl/cafAnimationToolBar.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Fwk/AppFwk/cafAnimControl/cafAnimationToolBar.cpp b/Fwk/AppFwk/cafAnimControl/cafAnimationToolBar.cpp index 423a84a600..ee7ff9f3d1 100644 --- a/Fwk/AppFwk/cafAnimControl/cafAnimationToolBar.cpp +++ b/Fwk/AppFwk/cafAnimControl/cafAnimationToolBar.cpp @@ -203,8 +203,8 @@ void AnimationToolBar::connectAnimationControl( caf::FrameAnimationControl* anim m_animRepeatFromStartAction->disconnect(); - m_timestepCombo->disconnect(); - m_frameRateSlider->disconnect(); + disconnect( m_timestepCombo, SIGNAL( currentIndexChanged( int ) ), nullptr, nullptr ); + disconnect( m_frameRateSlider, SIGNAL( valueChanged( int ) ), nullptr, nullptr ); if ( animationControl ) {