Bug report #10343

Crash in legend with invalid layer

Added by Radim Blazek over 7 years ago. Updated over 7 years ago.

Assignee:Martin Dobias
Category:Map Legend
Affected QGIS version:2.2.0 Regression?:No
Operating System: Easy fix?:No
Pull Request or Patch supplied:No Resolution:
Crashes QGIS or corrupts data:No Copied to github as #:18764


QGIS crashes when a project with invalid layer is opened.

Steps to reproduce:
  • create a project
  • move/rename the data or edit data source name in project
  • open the project and click 'Cancel' when asked to select datasource
  • click by right mouse button on the invalid layer

Associated revisions

Revision f57d4063
Added by Martin Dobias over 7 years ago

Fix #10343 (legend crash with invalid layer)

Fixed the crash itself in the context menu, but also changed the behavior
to remove any invalid layers from project as currently there is no mechanism
for postponing handling of invalid layers after project load


#1 Updated by Martin Dobias over 7 years ago

  • Status changed from Open to Closed

Also available in: Atom PDF