From a365493f86f4b178723026858f0d153676e4f7e6 Mon Sep 17 00:00:00 2001 From: Stanislaw Halik Date: Tue, 2 Jun 2015 22:35:33 +0200 Subject: process-detector: restart once executable is gone --- facetracknoir/process_detector.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/facetracknoir/process_detector.cpp b/facetracknoir/process_detector.cpp index a947ab19..902ab2ec 100644 --- a/facetracknoir/process_detector.cpp +++ b/facetracknoir/process_detector.cpp @@ -213,6 +213,8 @@ bool process_detector_worker::config_to_start(QString& str) // don't automatically start again while the same process is running. if (last_exe_name != "" && exe_list.contains(last_exe_name)) return false; + // it's gone, we can start automatically again + last_exe_name = ""; for (auto& name : exe_list) { -- cgit v1.2.3