[GRASS-dev] [GRASS GIS] #2502: wxdigit: "don't save" is not respected

#2502: wxdigit: "don't save" is not respected
-------------------------+--------------------------------------------------
Reporter: mlennert | Owner: grass-dev@…
     Type: defect | Status: new
Priority: normal | Milestone: 7.0.0
Component: wxGUI | Version: svn-trunk
Keywords: digitizer | Platform: Unspecified
      Cpu: Unspecified |
-------------------------+--------------------------------------------------
I have the feeling that I've seen a message or report on this before, but
can't find it:

When I digitize a new map, then close the digitizer and click on 'No' when
asked whether I want to save the map, the elements I digitized still get
saved to the new map.

--
Ticket URL: <https://trac.osgeo.org/grass/ticket/2502&gt;
GRASS GIS <http://grass.osgeo.org>

#2502: wxdigit: "don't save" is not respected
-------------------------+--------------------------------------------------
Reporter: mlennert | Owner: grass-dev@…
     Type: defect | Status: new
Priority: normal | Milestone: 7.0.0
Component: wxGUI | Version: svn-trunk
Keywords: digitizer | Platform: Unspecified
      Cpu: Unspecified |
-------------------------+--------------------------------------------------

Comment(by nikosa):

Happened the same to me while quick-testing Anna's newest tool.

--
Ticket URL: <https://trac.osgeo.org/grass/ticket/2502#comment:1&gt;
GRASS GIS <http://grass.osgeo.org>

#2502: wxdigit: "don't save" is not respected
-------------------------+--------------------------------------------------
Reporter: mlennert | Owner: grass-dev@…
     Type: defect | Status: new
Priority: normal | Milestone: 7.0.0
Component: wxGUI | Version: svn-trunk
Keywords: digitizer | Platform: Unspecified
      Cpu: Unspecified |
-------------------------+--------------------------------------------------

Comment(by annakrat):

Replying to [comment:1 nikosa]:
> Happened the same to me while quick-testing Anna's newest tool.
Let's keep this ticket for vector digitizer. But you probably saved the
result before quitting the tool, so the raster digitizer didn't revert the
saved changes, which is how applications work. If you think it doesn't
work like this or it should behave differently, please open a new ticket.

--
Ticket URL: <https://trac.osgeo.org/grass/ticket/2502#comment:2&gt;
GRASS GIS <http://grass.osgeo.org>

#2502: wxdigit: "don't save" is not respected
-------------------------+--------------------------------------------------
Reporter: mlennert | Owner: grass-dev@…
     Type: defect | Status: new
Priority: normal | Milestone: 7.0.0
Component: wxGUI | Version: svn-trunk
Keywords: digitizer | Platform: Unspecified
      Cpu: Unspecified |
-------------------------+--------------------------------------------------

Comment(by mmetz):

Replying to [ticket:2502 mlennert]:
> I have the feeling that I've seen a message or report on this before,
but can't find it:
>
> When I digitize a new map, then close the digitizer and click on 'No'
when asked whether I want to save the map, the elements I digitized still
get saved to the new map.

The undo/redo logic was wrong and 'do not save = undo all' did not work
properly. Fixed in r63341, please test.

--
Ticket URL: <https://trac.osgeo.org/grass/ticket/2502#comment:3&gt;
GRASS GIS <http://grass.osgeo.org>

#2502: wxdigit: "don't save" is not respected
--------------------------+-------------------------------------------------
  Reporter: mlennert | Owner: grass-dev@…
      Type: defect | Status: closed
  Priority: normal | Milestone: 7.0.0
Component: wxGUI | Version: svn-trunk
Resolution: fixed | Keywords: digitizer
  Platform: Unspecified | Cpu: Unspecified
--------------------------+-------------------------------------------------
Changes (by mlennert):

  * status: new => closed
  * resolution: => fixed

--
Ticket URL: <https://trac.osgeo.org/grass/ticket/2502#comment:4&gt;
GRASS GIS <http://grass.osgeo.org>