From 54bb0e349cf768c16cbb7d3fbc05d8be6f6fe4b3 Mon Sep 17 00:00:00 2001
From: Jordan Aurey <aurejordan@gmail.com>
Date: Fri, 29 Mar 2019 19:19:37 +0100
Subject: [PATCH] sig stop

---
 app/mainwindow.cpp | 5 +++++
 app/mainwindow.ui  | 5 +++++
 2 files changed, 10 insertions(+)

diff --git a/app/mainwindow.cpp b/app/mainwindow.cpp
index 55f4ea3..bb424b6 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 907477d..f657f55 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>
-- 
GitLab