diff options
author | ormorph <roma251078@mail.ru> | 2023-12-02 11:03:32 +0300 |
---|---|---|
committer | Michele Calgaro <michele.calgaro@yahoo.it> | 2023-12-04 15:04:23 +0900 |
commit | 8ae7f36329a0f259a7bfc5fa47b55ed227cb2373 (patch) | |
tree | 08c0f34b46b8ba5ca8654369edfb37590705bfa1 /src | |
parent | e3b2584b2a32da3f10a1c90d1e6d2a1497251d6c (diff) | |
download | kstreamripper-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.cpp | 4 |
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; } |