Bug report #10343

Crash in legend with invalid layer

Added by Radim Blazek almost 10 years ago. Updated almost 10 years ago.

Status:Closed
Priority:Severe/Regression
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

Description

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 almost 10 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

History

#1 Updated by Martin Dobias almost 10 years ago

  • Status changed from Open to Closed

Also available in: Atom PDF