diff --git a/main_wayland.cpp b/main_wayland.cpp --- a/main_wayland.cpp +++ b/main_wayland.cpp @@ -169,7 +169,7 @@ VirtualKeyboard::create(this); createBackend(); - TabletModeManager::create(this); + TabletModeManager::create(input()); } void ApplicationWayland::createBackend() diff --git a/tabletmodemanager.cpp b/tabletmodemanager.cpp --- a/tabletmodemanager.cpp +++ b/tabletmodemanager.cpp @@ -82,10 +82,7 @@ ); } -TabletModeManager::~TabletModeManager() -{ - delete m_spy; -} +TabletModeManager::~TabletModeManager() = default; bool TabletModeManager::isTablet() const {