[gnome-usage] quit-process-dialog: Kill the process' PID not Usage's



commit 87fc1d01f50e3c60f04d2cd62a2f385731d2e653
Author: Felipe Borges <felipeborges gnome org>
Date:   Thu Nov 9 14:49:19 2017 +0100

    quit-process-dialog: Kill the process' PID not Usage's
    
    By not assigning the PID argument to the object property we are
    actually killing Usage itself instead of the given process.

 src/quit-process-dialog.vala | 2 ++
 1 file changed, 2 insertions(+)
---
diff --git a/src/quit-process-dialog.vala b/src/quit-process-dialog.vala
index 46e78e4..34ed27c 100644
--- a/src/quit-process-dialog.vala
+++ b/src/quit-process-dialog.vala
@@ -29,6 +29,8 @@ namespace Usage
 
         public QuitProcessDialog(Pid pid, string app_name)
         {
+            this.pid = pid;
+
             this.text = this.text.printf(app_name);
         }
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]