Diffusion KWin 1bfe1164f41d

Fix crash on dragging titlebar buttons in System Settings

Authored by vtronko on Mar 24 2017, 3:57 PM.

Description

Fix crash on dragging titlebar buttons in System Settings

Summary:
Currently, if user tries to move one of buttons to the left, ending up
dragging one button onto another, crash occurs.

In addition, this patch replaces verbose replacement(remove/insert) with
more elegant QVector<T>::move(int, int)

BUG: 374153
FIXED-IN: 5.8.7

Reviewers: graesslin, KWin

Reviewed By: graesslin, KWin

Subscribers: kwin

Tags: KWin

Differential Revision: https://phabricator.kde.org/D5117

Details

Committed
davidedmundsonApr 12 2017, 5:16 PM
Reviewer
KWin
Differential Revision
D5117: Fix crash on dragging titlebar buttons in System Settings
Parents
R108:c3362fe866dd: [kcm_kwindecoration] Respect theme colors in buttons
Branches
Unknown
Tags
Unknown