Bug report #11474
Cannot move anymore layers in TOC in QGIS master
|Affected QGIS version:||master||Regression?:||No|
|Operating System:||Easy fix?:||No|
|Pull Request or Patch supplied:||No||Resolution:|
|Crashes QGIS or corrupts data:||No||Copied to github as #:||19744|
somewhere in between of d833c22 and f2b7c0f (the two master releases available on osgeo4w now) went wrong, and in the latest is not possible to move layers in TOC up/down/inside groups.
Fix #11474 (cannot move layers in layer tree anymore)
I have managed to break that with implementation of #11369.
Obviously it is a bad idea to change selection in a slot connected to model's rowsInserted signals
because the drag'n'drop does not work properly anymore. Now registry bridge will emit a signal after
new layers have been added, so the selection change at that point should be safe.