planetfederal / qgis-suite-plugin

GNU General Public License v2.0
25 stars 17 forks source link

Deleting extraneous GS styles prompts to delete GS layer #173

Closed dakcarto closed 9 years ago

dakcarto commented 9 years ago

When selecting multiple GeoServer styles in panel tree, then electing to Delete them, the confirm delete dialog lists any parent GS layer (and its dependencies), which is somewhat destructive if there are possibly still other styles assigned to the GS layer.

Conversely, when deleting the same styles individually, the operation does not prompt for deletion of the GS layer, unless you are deleting the only remaining style, which is the default, for the layer.

Possible workflow:

dakcarto commented 9 years ago

Also, if selecting one GS style under "GeoServer Styles" and choosing delete, user will be prompted to delete GS layer (and its dependencies), even though other styles exist for the layer, and even if the to-be-deleted style is not the layer's default style.

dakcarto commented 9 years ago

@volaya The deletion of multiple styles, from under a GS layer item, now also removes them from the catalog's styles. Is this expected? EDIT: doing the same individually does not remove the styles from catalog, only the layer.

Selecting a style under GeoServer Styles that is also a default style for a GS layer, which has more styles, then choosing to delete is a no op, though it appears to be doing something (progress bar, etc.). No deletion, user notification or reassigning of default layer occurs.