Fix crash on dragging titlebar buttons in System Settings

Review Request #130025 - Created March 17, 2017 and submitted

Information
Vladyslav Tronko
kwin
f0e32cf...
Reviewers
kwin
graesslin
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)

Works as expected on ArchLinux x86_64

Vladyslav Tronko
Martin Flöser
Martin Flöser
Anthony Fieroni
Vladyslav Tronko
Review request changed

Status: Closed (submitted)

Loading...