Support undo when reordering profiles
Merge branch 'undoProfileOrderChanges'
Fix bug where dragging profiles when there is a sort descriptor ignores the first drag
Fix some warnings
Merge branch 'undoProfileOrderChanges'