Bug report #10339

crash regression (layer refactoring) when dragging a layer at the very top of the layers list

Added by Mathieu Pellerin - nIRV over 10 years ago. Updated over 10 years ago.

Status:Closed
Priority:Severe/Regression
Assignee:Martin Dobias
Category:-
Affected QGIS version:master Regression?:No
Operating System: Easy fix?:No
Pull Request or Patch supplied:No Resolution:
Crashes QGIS or corrupts data:Yes Copied to github as #:18760

Description

Steps to reproduce:
1. Create a new project
2. Add two layers (same data source) to the project
3. Select the last layer from the layers' list and drag it below the first layer (so visually it stays the same)
4. Using the same last layer, drag it above the first layer
4 Boom crash :)

Regression caused by the layer refactoring.

Associated revisions

Revision 2c51dcb7
Added by Martin Dobias over 10 years ago

Fix #10339 (crash when reordering layers)

This was caused by the recent addition of currentNode handling in model.
Changed to use persistent indices which are auto-updated when model changes.

History

#1 Updated by Martin Dobias over 10 years ago

  • Status changed from Open to Closed

Also available in: Atom PDF