After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 613077 - Game is restarted if Settings/Preferences is opened
Game is restarted if Settings/Preferences is opened
Status: RESOLVED FIXED
Product: gnome-robots
Classification: Applications
Component: general
git master
Other Linux
: Urgent critical
: ---
Assigned To: Mario Wenzel
gnome-robots-maint
Depends on:
Blocks:
 
 
Reported: 2010-03-16 20:08 UTC by gnomebugs
Modified: 2014-02-03 21:08 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description gnomebugs 2010-03-16 20:08:56 UTC
Hello,

I played a game of gnobots2 and already got to level 40. Then I clicked Settings/Preferences and.. the game restarted! No confirmation, no abort, no undo; my level 40 game was gone! :-(

Suggested fix:

Add a new button "OK" to the preferences dialog and rename the other to "Abort".

* If the user presses Abort: don't save the settings, don't restart the game, exit dialog.
* Else if the user presses OK:
**  If the user changed the Game Type:
*** If in level 1: restart without confirmation, save new settings, exit dialog.
*** Else: get confirmation from user (popup window)
**** confirm: restart the game, save new settings, exit dialog.
**** abort: don't save anything, don't restart the game, exit dialog.
** else (the user did not change game type): save new settings, don't restart game, exit dialog.

Thanks in advance :-)
Comment 1 Michael Catanzaro 2014-01-15 23:43:25 UTC
Oh dearie me, this is really something else....
Comment 2 Michael Catanzaro 2014-02-03 17:32:28 UTC
Mario, since you volunteered (hehe), want to take a look at this one?
Comment 3 Mario Wenzel 2014-02-03 21:08:28 UTC
Yeah, fixed that in master. Extremely low risk, therefore I've also cherry-picked that to 3.10.