diff options
author | Giulio Camuffo <giulio.camuffo@jollamobile.com> | 2014-08-15 19:38:13 +0300 |
---|---|---|
committer | Giulio Camuffo <giulio.camuffo@jollamobile.com> | 2014-08-15 18:54:54 +0200 |
commit | 1e3b3d6208a4edae04f6e3bb478a483c68972efc (patch) | |
tree | ad39385deb031e79c6e2387c944072b1ecd91ee3 /tests | |
parent | 8d3962f637c9b72f76d300c3d2b9120bf610876f (diff) |
Fix possible crash of the test client
The cursor surface is not in the surfaces list when destroyed
Change-Id: Ie29224679776d0abec7862d2976be892c63521a7
Reviewed-by: Robin Burchell <robin.burchell@viroteck.net>
Diffstat (limited to 'tests')
-rw-r--r-- | tests/auto/client/mockcompositor.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/auto/client/mockcompositor.cpp b/tests/auto/client/mockcompositor.cpp index cfaa34788..bb4f10fd9 100644 --- a/tests/auto/client/mockcompositor.cpp +++ b/tests/auto/client/mockcompositor.cpp @@ -291,7 +291,7 @@ void Compositor::addSurface(Surface *surface) void Compositor::removeSurface(Surface *surface) { - m_surfaces.remove(m_surfaces.indexOf(surface)); + m_surfaces.removeOne(surface); if (m_keyboard->focus() == surface) m_keyboard->setFocus(0); if (m_pointer->focus() == surface) |