Bug report #6957
Remove "No active layer" dialog for select tool
Status: | Closed | ||
---|---|---|---|
Priority: | Normal | ||
Assignee: | - | ||
Category: | GUI | ||
Affected QGIS version: | master | Regression?: | No |
Operating System: | Easy fix?: | No | |
Pull Request or Patch supplied: | No | Resolution: | |
Crashes QGIS or corrupts data: | No | Copied to github as #: | 16067 |
Description
The user is pressed with this annoying dialog if there is no active layer when using the select tool.
- Select a layer in the legend
- Make the select tool active
- Click on the whitespace in the legend so no layer is selected
- Click in the map
We have two options:
- Remove the dialog and do nothing
- Remove the dialog and show a message in the message bar above the canvas.
Associated revisions
Fix #6957, move 'not vector/editable layer' dialogs to message bar for map edit and select tools
- Move notifications to base QgsMapToolEdit class
- Add QgsMessageBar::INFO icon (also useful for lightweight WARNING)
History
#1 Updated by Larry Shaffer over 11 years ago
+1 for a timed message in the QgsMessageBar. I really dislike that dialog.
Sounds like a good case (among others) to pass a parameter in with the message to be handled by some QTimer method.
#2 Updated by Nathan Woodrow over 11 years ago
- File notvector.png added
Here is another one if you have a vector tool selected but the active layer is a raster layer
#3 Updated by Larry Shaffer over 11 years ago
- Status changed from Open to Closed
Fixed in changeset 2c36e7d79fdd6b22495ec8affb6dda942765b9fd.