summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorormorph <roma251078@mail.ru>2023-12-02 11:03:32 +0300
committerMichele Calgaro <michele.calgaro@yahoo.it>2023-12-04 15:04:23 +0900
commit8ae7f36329a0f259a7bfc5fa47b55ed227cb2373 (patch)
tree08c0f34b46b8ba5ca8654369edfb37590705bfa1 /src
parente3b2584b2a32da3f10a1c90d1e6d2a1497251d6c (diff)
downloadkstreamripper-8ae7f36329a0f259a7bfc5fa47b55ed227cb2373.tar.gz
kstreamripper-8ae7f36329a0f259a7bfc5fa47b55ed227cb2373.zip
Added processing for stopping processes when closing the program window
Signed-off-by: ormorph <roma251078@mail.ru>
Diffstat (limited to 'src')
-rw-r--r--src/kstreamripper.cpp4
1 files changed, 4 insertions, 0 deletions
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;
}