Bug report #1985

Canceling new project remove layers

Added by lroubeyrie - over 14 years ago. Updated over 14 years ago.

Status:Closed
Priority:Low
Assignee:nobody -
Category:Project Loading/Saving
Affected QGIS version: Regression?:No
Operating System:All Easy fix?:No
Pull Request or Patch supplied: Resolution:fixed
Crashes QGIS or corrupts data: Copied to github as #:12045

Description

After adding some layers, clicking on "New project" but canceling the dialog box will remove all the layers in the layers tree, not on the canvas (not updated).

History

#1 Updated by Giovanni Manghi over 14 years ago

It is enough to pan or zoom and the layers do disappear in the canvas.

The following question is, what we expect to happen when you click "new project" and then "cancel"? my first answer would be that I expect to continue work normally. Am I wrong?

#2 Updated by lroubeyrie - over 14 years ago

When I say the canvas is not updated, it's to point a inconsistency between the canvas and the layer tree (legend), and sure when clicking "cancel" I expect the layers to be here (in the legend and on the canvas :P).

#3 Updated by Giovanni Manghi over 14 years ago

Replying to [comment:2 lroubeyrie]:

and sure when clicking "cancel" I expect the layers to be here (in the legend and on the canvas :P).

so this is the "real" bug, clicking "cancel" should leave the project in the state it was before clicking "new project".

#4 Updated by Marco Hugentobler over 14 years ago

  • Resolution set to fixed
  • Status changed from Open to Closed

Fixed in d726cb98 (SVN r11770)

Also available in: Atom PDF