Bug report #18141

[GUI] Disable edit tools when no layer is selected/available nor selected layer is in edit mode

Added by Harrissou Santanna about 6 years ago. Updated over 5 years ago.

Status:Closed
Priority:Normal
Assignee:Alexander Bruy
Category:GUI
Affected QGIS version:3.5(master) Regression?:No
Operating System: Easy fix?:Yes
Pull Request or Patch supplied:No Resolution:fixed/implemented
Crashes QGIS or corrupts data:No Copied to github as #:26034

Description

Open QGIS
Expand Edit menu
There are some items that should be grayed and that aren't.


Related issues

Related to QGIS Application - Bug report #20333: "Add Rectangle From 3 Points" is enabled on a new project Closed 2018-11-02

Associated revisions

Revision ab3adc66
Added by Alexander Bruy over 5 years ago

[gui] enable deselect feature and create rectangle action only when
there is a vector layer in the project (fix #18141, #20333)

Revision 38051a95
Added by Alexander Bruy over 5 years ago

[gui] enable deselect feature and create rectangle action only when
there is a vector layer in the project (fix #18141, #20333)

(cherry picked from commit ab3adc663c37b3da589cf6bae56d733fcbc4feb3)

History

#1 Updated by Giovanni Manghi about 6 years ago

  • Affected QGIS version changed from master to 2.99(master)

#2 Updated by Harrissou Santanna over 5 years ago

  • Related to Bug report #20333: "Add Rectangle From 3 Points" is enabled on a new project added

#3 Updated by Jürgen Fischer over 5 years ago

  • Status changed from Open to Feedback

Please test with QGIS 3.4 - QGIS 2.18 reached it's end of life.

#4 Updated by Harrissou Santanna over 5 years ago

  • Affected QGIS version changed from 2.99(master) to 3.5(master)
  • Status changed from Feedback to Open
Checking master, I can see the following tools enabled in Edit menu, while there's no need:
  • Select --> Deselect features from all layers (not a big issue but unnecessary as the app just opens and is empty)
  • Add rectangle --> Add rectangle from 3 points (both distance from 2nd and 3rd points, and projected point...)

#5 Updated by Alexander Bruy over 5 years ago

  • Status changed from Open to Closed
  • % Done changed from 0 to 100

#6 Updated by Alexander Bruy over 5 years ago

  • Assignee set to Alexander Bruy
  • Resolution set to fixed/implemented

Also available in: Atom PDF