Bug report #7806
"Invalid layer" dialog is not helpful
|Affected QGIS version:||1.8.0||Regression?:||No|
|Operating System:||Windows||Easy fix?:||No|
|Pull Request or Patch supplied:||No||Resolution:|
|Crashes QGIS or corrupts data:||No||Copied to github as #:||16696|
The Invalid Layer dialog does not explain why a layer is invalid.
The attached image has an Invalid Layer dialog that appeared after trying to add a PostGIS table. My view does not have an id column (it only has a geom column). If I didn't already know of the requirement for an id column, I would have had no clue what caused this error.
I am filing as a bug because this is a defect with the UI. The UI should explain errors in enough detail that the user can resolve them.