Opened 11 years ago

Closed 11 years ago

#2028 closed defect (fixed)

A save dialog should be offered when leaving TA (if something has been done)

Reported by: rgs Owned by: walter
Priority: Unspecified by Maintainer Milestone: Unspecified
Component: Turtleart Version: Unspecified
Severity: Unspecified Keywords: turtleart save gnome
Cc: Distribution/OS: Unspecified
Bug Status: Unconfirmed

Description

This is on Gnome (and probably any other Desktop environment that is not Sugar).

Steps to reproduce the bug:

1) start TA
2) do something (i.e.: a simple program in which the turtle walks forward)
3) close TA

and no "save" dialog is offered.

Attachments (1)

save-before-quit.patch (1.9 KB) - added by rgs 11 years ago.

Download all attachments as: .zip

Change History (4)

comment:1 Changed 11 years ago by rgs

Btw, do we have something like canvas_has_blocks()? Or start_has_blocks()? If we don't, how hard would it be to implement such method.

comment:2 Changed 11 years ago by rgs

Here is an initial attempt. It handles the basic case:

1) start TA
2) do something
3) try to quit. if something was done, it'll ask if you want to save before quitting

Case not being handled(yet):
1) load an existing project
2) don't do anything
3) it'll still ask if you'd like to save (as if it was a new project)

Changed 11 years ago by rgs

comment:3 Changed 11 years ago by walter

  • Resolution set to fixed
  • Status changed from new to closed

in v89

Note: See TracTickets for help on using tickets.