diff --git a/app/mainwindow.cpp b/app/mainwindow.cpp index 55f4ea30ba4494ba69bf382074dfdbfe914096d9..bb424b6f20f7588e2407ddf657136b1469b580ee 100644 --- a/app/mainwindow.cpp +++ b/app/mainwindow.cpp @@ -109,6 +109,10 @@ void MainWindow::on_comboBox_currentTextChanged(const QString &arg1) kill(PIDselected, SIGINT); } + if (arg1 == "Stop"){ + kill(PIDselected, SIGSTOP); + } + if (arg1 == "Continue"){ kill(PIDselected, SIGCONT); } @@ -121,6 +125,7 @@ void MainWindow::on_comboBox_currentTextChanged(const QString &arg1) kill(PIDselected, SIGKILL); } + ui->comboBox->hide(); } diff --git a/app/mainwindow.ui b/app/mainwindow.ui index 907477dcc52fc5e19347b72623b9659997543da6..f657f556332a528fc9e9d248fc11f241bc3467e8 100644 --- a/app/mainwindow.ui +++ b/app/mainwindow.ui @@ -234,6 +234,11 @@ <string>Interrupt</string> </property> </item> + <item> + <property name="text"> + <string>Stop</string> + </property> + </item> <item> <property name="text"> <string>Continue</string>