From 8ae7f36329a0f259a7bfc5fa47b55ed227cb2373 Mon Sep 17 00:00:00 2001 From: ormorph Date: Sat, 2 Dec 2023 11:03:32 +0300 Subject: [PATCH] Added processing for stopping processes when closing the program window Signed-off-by: ormorph --- src/kstreamripper.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/kstreamripper.cpp b/src/kstreamripper.cpp index bfcf09b..a4fef54 100644 --- a/src/kstreamripper.cpp +++ b/src/kstreamripper.cpp @@ -144,6 +144,10 @@ void KStreamRipper::closeEvent( TQCloseEvent *e ) nameList.append( iter.current()->text( 0 )); urlList.append( ProcItem->getProcessController()->getUrl() ); descList.append( ProcItem->getProcessController()->getDescription() ); + if ( ProcItem->getProcessController()->getStatus() ) + { + ProcItem->getProcessController()->stopRip(); + } ++iter; }