summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorzheng_wenlong <wenlong_zheng@nexty-ele.com>2018-12-04 19:04:13 +0900
committerzheng_wenlong <wenlong_zheng@nexty-ele.com>2018-12-04 19:04:13 +0900
commitdd8aa0f4acca5f5ae0de8d547be7b5c87603ff73 (patch)
tree17ad29dbed46f081c05a2e78063d33abb8e8a935
parent1d481d828e5c4df270f61554985c542b463294c6 (diff)
-rw-r--r--app/main.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/app/main.cpp b/app/main.cpp
index 4faf42e..018ee06 100644
--- a/app/main.cpp
+++ b/app/main.cpp
@@ -135,7 +135,7 @@ int main(int argc, char* argv[]) {
QLibWindowmanager::Event_Invisible,
[&isVisible](json_object* object) {
qDebug() << "Surface Video got Event_Invisible!";
- isVisible = true;
+ isVisible = false;
});
// Set the event handler for Event_Restriction which will allocate or
@@ -145,6 +145,7 @@ int main(int argc, char* argv[]) {
[hs, &area, &isVisible, &isRestrict](json_object* object) {
qDebug() << "Surface Video got Event_CarRun!";
if(isVisible){
+ qDebug() << "Surface Video send allocateRestriction!";
hs->allocateRestriction(area.toStdString().c_str());
isRestrict = true;
}
@@ -155,6 +156,7 @@ int main(int argc, char* argv[]) {
[hs, &area, &isRestrict](json_object* object) {
qDebug() << "Surface Video got Event_CarStop!";
if(isRestrict){
+ qDebug() << "Surface Video send releaseRestriction!";
hs->releaseRestriction(area.toStdString().c_str());
isRestrict = false;
}