From 9f35544940e028695126d21f18533ae737b0242e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebastian=20K=C3=BCgler?= Date: Wed, 7 Sep 2016 10:58:37 +0200 Subject: [PATCH] [libinput] Don't set the parent on the Device MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This causes an assert with debug build of Qt due to threading issues. We don't need the setParent call as we use deleteLater when a device gets removed. Reviewed-by: Martin Gräßlin --- libinput/connection.cpp | 1 - 1 file changed, 1 deletion(-) diff --git a/libinput/connection.cpp b/libinput/connection.cpp index e39dc1e455..6831736b30 100644 --- a/libinput/connection.cpp +++ b/libinput/connection.cpp @@ -220,7 +220,6 @@ void Connection::processEvents() case LIBINPUT_EVENT_DEVICE_ADDED: { auto device = new Device(event->nativeDevice()); device->moveToThread(s_thread); - device->setParent(this); m_devices << device; if (device->isKeyboard()) { m_keyboard++;