[GRASS-git] [OSGeo/grass] 0f7658: wxGUI/main_window: fix close map notebook page (#2...

Tomas Zigo noreply at github.com
Sat Jan 8 21:16:15 PST 2022

  Branch: refs/heads/main
  Home:   https://github.com/OSGeo/grass
  Commit: 0f7658822c4eb9e97e2ab4da10b4ef273f9412b2
  Author: Tomas Zigo <50632337+tmszi at users.noreply.github.com>
  Date:   2022-01-09 (Sun, 09 Jan 2022)

  Changed paths:
    M gui/wxpython/lmgr/frame.py
    M gui/wxpython/main_window/frame.py
    M gui/wxpython/mapdisp/frame.py

  Log Message:
  wxGUI/main_window: fix close map notebook page (#2072)

Only in single window mode.

* wxGUI/main_window: fix getting correct map notebook page index

To avoid incorrectly closing the map notebook page, if the pages
of the map notebook change position by dragging and dropping.

* wxGUI/mapdisp: fix checking pgnum_dict variable if it's None

When the map display notebook page has a vector/raster map
displayed and the page is closed, and pressed the Cancel button
in the Close Map Display dialog, canCloseDisplayCallback function
return None not dict value.

* wxGUI/lmgr: actual closed map display notebook layers tree page is stored in the dict

Fixes closing the map display notebook layers tree page in
multi window mode.

Co-authored-by: Linda Kladivova <49241681+lindakladivova at users.noreply.github.com>

More information about the grass-commit mailing list