Skip to content

Commit

Permalink
fix app freeze on quitting the app
Browse files Browse the repository at this point in the history
  • Loading branch information
rolandlo committed Nov 1, 2022
1 parent e8893fd commit 77751f0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/gui/inputdevices/HandRecognition.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,8 @@ HandRecognition::HandRecognition(GtkWidget* widget, InputContext* inputContext,

HandRecognition::~HandRecognition() {
// Enable touchscreen on quit application
if (!touchState) {
enableTouch();
if (!touchState && enabled && touchImpl) {
touchImpl->enableTouch();
}

delete touchImpl;
Expand Down

0 comments on commit 77751f0

Please sign in to comment.