Bug report #6957

Remove "No active layer" dialog for select tool

Added by Nathan Woodrow almost 12 years ago. Updated almost 12 years ago.

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:

  1. Remove the dialog and do nothing
  2. Remove the dialog and show a message in the message bar above the canvas.

dialog.png (9.67 KB) Nathan Woodrow, 2013-01-07 08:02 PM

notvector.png (8.36 KB) Nathan Woodrow, 2013-01-09 04:58 PM

Associated revisions

Revision 2c36e7d7
Added by Larry Shaffer almost 12 years ago

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 almost 12 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 almost 12 years ago

Here is another one if you have a vector tool selected but the active layer is a raster layer

#3 Updated by Larry Shaffer almost 12 years ago

  • Status changed from Open to Closed

Also available in: Atom PDF