From 179af982c9cf74ffa1c005e1813b850deaf35f57 Mon Sep 17 00:00:00 2001 From: ann0see <20726856+ann0see@users.noreply.github.com> Date: Wed, 20 May 2026 20:24:10 +0200 Subject: [PATCH 1/4] Apply suggested fix to src/clientdlg.cpp from Copilot Autofix Co-authored-by: Copilot Autofix powered by AI <223894421+github-code-quality[bot]@users.noreply.github.com> --- src/clientdlg.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/clientdlg.cpp b/src/clientdlg.cpp index 9fdb52f3a1..56f24d0291 100644 --- a/src/clientdlg.cpp +++ b/src/clientdlg.cpp @@ -1445,8 +1445,8 @@ void CClientDlg::SetMeterStyle ( const EMeterStyle eNewMeterStyle ) break; case MT_LED_ROUND_SMALL: - lbrInputLevelL->SetLevelMeterType ( CLevelMeter::MT_LED_ROUND_BIG ); - lbrInputLevelR->SetLevelMeterType ( CLevelMeter::MT_LED_ROUND_BIG ); + lbrInputLevelL->SetLevelMeterType ( CLevelMeter::MT_LED_ROUND_SMALL ); + lbrInputLevelR->SetLevelMeterType ( CLevelMeter::MT_LED_ROUND_SMALL ); break; } From daa2ece8556b187fa9f2020832ca7007c731e6ca Mon Sep 17 00:00:00 2001 From: ann0see <20726856+ann0see@users.noreply.github.com> Date: Wed, 20 May 2026 20:24:11 +0200 Subject: [PATCH 2/4] Apply suggested fix to src/clientdlg.cpp from Copilot Autofix Co-authored-by: Copilot Autofix powered by AI <223894421+github-code-quality[bot]@users.noreply.github.com> --- src/clientdlg.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/clientdlg.cpp b/src/clientdlg.cpp index 56f24d0291..d4a530f3e3 100644 --- a/src/clientdlg.cpp +++ b/src/clientdlg.cpp @@ -1440,8 +1440,8 @@ void CClientDlg::SetMeterStyle ( const EMeterStyle eNewMeterStyle ) break; case MT_BAR_NARROW: - lbrInputLevelL->SetLevelMeterType ( CLevelMeter::MT_BAR_WIDE ); - lbrInputLevelR->SetLevelMeterType ( CLevelMeter::MT_BAR_WIDE ); + lbrInputLevelL->SetLevelMeterType ( CLevelMeter::MT_BAR_NARROW ); + lbrInputLevelR->SetLevelMeterType ( CLevelMeter::MT_BAR_NARROW ); break; case MT_LED_ROUND_SMALL: From 4d97d812007265a43d6476b65b2ae38ad693c827 Mon Sep 17 00:00:00 2001 From: ann0see <20726856+ann0see@users.noreply.github.com> Date: Wed, 20 May 2026 20:24:11 +0200 Subject: [PATCH 3/4] Apply suggested fix to src/clientdlg.cpp from Copilot Autofix Co-authored-by: Copilot Autofix powered by AI <223894421+github-code-quality[bot]@users.noreply.github.com> --- src/clientdlg.cpp | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/src/clientdlg.cpp b/src/clientdlg.cpp index d4a530f3e3..afa04cffca 100644 --- a/src/clientdlg.cpp +++ b/src/clientdlg.cpp @@ -907,7 +907,14 @@ void CClientDlg::OnNumClientsChanged ( int iNewNumClients ) { if ( pSettings->bEnableAudioAlerts && iNewNumClients > iClients ) { - QSoundEffect* sf = new QSoundEffect(); + QSoundEffect* sf = new QSoundEffect ( this ); + connect ( sf, &QSoundEffect::playingChanged, this, [sf]() + { + if ( !sf->isPlaying() ) + { + sf->deleteLater(); + } + } ); sf->setSource ( QUrl::fromLocalFile ( ":sounds/res/sounds/new_user.wav" ) ); sf->play(); } From a5ace11dd2a1b860357cfff2d253ee4b10cdde33 Mon Sep 17 00:00:00 2001 From: ann0see <20726856+ann0see@users.noreply.github.com> Date: Wed, 20 May 2026 20:24:12 +0200 Subject: [PATCH 4/4] Apply suggested fix to src/clientdlg.cpp from Copilot Autofix Co-authored-by: Copilot Autofix powered by AI <223894421+github-code-quality[bot]@users.noreply.github.com> --- src/clientdlg.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/clientdlg.cpp b/src/clientdlg.cpp index afa04cffca..851e91b0e8 100644 --- a/src/clientdlg.cpp +++ b/src/clientdlg.cpp @@ -856,9 +856,9 @@ void CClientDlg::OnChatTextReceived ( QString strChatText ) { if ( pSettings->bEnableAudioAlerts ) { - QSoundEffect* sf = new QSoundEffect(); - sf->setSource ( QUrl::fromLocalFile ( ":sounds/res/sounds/new_message.wav" ) ); - sf->play(); + QSoundEffect sf; + sf.setSource ( QUrl::fromLocalFile ( ":sounds/res/sounds/new_message.wav" ) ); + sf.play(); } ChatDlg.AddChatText ( strChatText );