summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorormorph <roma251078@mail.ru>2023-12-02 11:03:32 +0300
committerMichele Calgaro <michele.calgaro@yahoo.it>2023-12-05 11:02:09 +0900
commitff9482e129166913db4cfba95be4088a28e270fe (patch)
tree08c0f34b46b8ba5ca8654369edfb37590705bfa1
parent943a67a4755aab11494556994b35a52889cd497e (diff)
downloadkstreamripper-ff9482e129166913db4cfba95be4088a28e270fe.tar.gz
kstreamripper-ff9482e129166913db4cfba95be4088a28e270fe.zip
Added processing for stopping processes when closing the program window
Signed-off-by: ormorph <roma251078@mail.ru> (cherry picked from commit 8ae7f36329a0f259a7bfc5fa47b55ed227cb2373)
-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;
}