diff options
| author | ormorph <roma251078@mail.ru> | 2023-12-05 21:14:11 +0900 |
|---|---|---|
| committer | Michele Calgaro <michele.calgaro@yahoo.it> | 2023-12-06 19:37:14 +0900 |
| commit | b3d9058d96f5f2939360fde1b6c28062f4db827b (patch) | |
| tree | d8baf144b4d6828710e4c0706632241ee9d8f6bd /src/processcontroller.cpp | |
| parent | 6701bdba555126443873b31eb1c2b288fae61d77 (diff) | |
| download | kstreamripper-b3d9058d96f5f2939360fde1b6c28062f4db827b.tar.gz kstreamripper-b3d9058d96f5f2939360fde1b6c28062f4db827b.zip | |
Added event processing if the process has finished its work
Signed-off-by: ormorph <roma251078@mail.ru>
(cherry picked from commit 7bd4251db36952dce6c17d477f4671199d5c9971)
Diffstat (limited to 'src/processcontroller.cpp')
| -rw-r--r-- | src/processcontroller.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/processcontroller.cpp b/src/processcontroller.cpp index f39a4c6..35558b2 100644 --- a/src/processcontroller.cpp +++ b/src/processcontroller.cpp @@ -26,6 +26,7 @@ ProcessController::ProcessController(ProcessListViewItem * parent) : TQObject((TQObject *)parent), myParent(parent), myStatus(false), myAutomatic(false), myProcess(new TQProcess(this)) { connect (myProcess, TQT_SIGNAL( readyReadStdout() ), (ProcessController *) this, TQT_SLOT( readStdout()) ); + connect (myProcess, TQT_SIGNAL(processExited() ), (ProcessController *) this, TQT_SLOT( processExited()) ); // connect (myProcess, TQT_SIGNAL( destroyed() ), myProcess, TQT_SLOT( kill()) ); // this should work, according to http://doc.trolltech.com/3.2/qobject.html#~TQObject but it doesn't } @@ -68,6 +69,13 @@ void ProcessController::readStdout() } } +void ProcessController::processExited() +{ + myStatus = false; + myParent->setText( 1, "" ); + myParent->setText( 2, "" ); + emit stopRipSignal(this); +} void ProcessController::startRip(TQString destination, TQString time) { |
