[GRASS-git] [OSGeo/grass] f95c37: GUI: do not remove parameter value on dialog updat...

Martin Landa noreply at github.com
Sat May 31 06:22:38 PDT 2025


  Branch: refs/heads/main
  Home:   https://github.com/OSGeo/grass
  Commit: f95c374b189c9f5cf58a1d85c67c6a5192a6f52c
      https://github.com/OSGeo/grass/commit/f95c374b189c9f5cf58a1d85c67c6a5192a6f52c
  Author: Martin Landa <landa.martin at gmail.com>
  Date:   2025-05-31 (Sat, 31 May 2025)

  Changed paths:
    M gui/wxpython/gui_core/forms.py
    M gui/wxpython/gui_core/gselect.py

  Log Message:
  -----------
  GUI: do not remove parameter value on dialog update event (#5760)

Currently when `map/input` option is changed than also all depending widgets (`layer`, `columns`, `where`) are updated. It includes also setting value to an empty string.

## Steps to reproduce

1. Launch ` v.db.select map=schools where="TAG = '001'" --ui`
2. Change `map` option

-> `where` option is removed


This PR changes current behaviour 

-> `where` option is kept


## Background reasons

- Keep decision to remove or update eg. `where` option on the user
- User may have multiple maps with the same column. When switching between maps, a `where` statement must be set again from the scratch (which is not desired in this case)
- Solves #5759


* forms: do not remove parameter value on update

* ColumnSelect: do not set default value on update



To unsubscribe from these emails, change your notification settings at https://github.com/OSGeo/grass/settings/notifications


More information about the grass-commit mailing list