Fix crash on dragging titlebar buttons in System Settings
ClosedPublic

Authored by vtronko on Mar 20 2017, 9:34 PM.

Details

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)

Diff Detail

Repository
R108 KWin
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.
vtronko created this revision.Mar 20 2017, 9:34 PM
Restricted Application added a project: KWin. · View Herald TranscriptMar 20 2017, 9:34 PM
Restricted Application added a subscriber: kwin. · View Herald Transcript
graesslin accepted this revision.Mar 21 2017, 6:12 AM

do you have push rights?

This revision is now accepted and ready to land.Mar 21 2017, 6:12 AM
This revision was automatically updated to reflect the committed changes.