<URL: http://bugs.freeciv.org/Ticket/Display.html?id=39423 >

Whenever a new server is started by the gtk client it takes two clicks
on the Cancel button to really go back to the main page.

Patch to pages.c included. The callback only closed the connection
when clicking cancel, now it both closes and goes back to main menu.

I see no reason not to make this change. I have not tried ggz but the
ggz-enabled client eventually exits inside disconnect_from_server()

Index: client/gui-gtk-2.0/pages.c
===================================================================
--- client/gui-gtk-2.0/pages.c	(revision 13022)
+++ client/gui-gtk-2.0/pages.c	(arbetskopia)
@@ -122,9 +122,8 @@
 {
   if (aconnection.used) {
     disconnect_from_server();
-  } else {
-    set_client_page(in_ggz ? PAGE_GGZ : PAGE_MAIN);
   }
+  set_client_page(in_ggz ? PAGE_GGZ : PAGE_MAIN);
 }
 
 /**************************************************************************
_______________________________________________
Freeciv-dev mailing list
Freeciv-dev@gna.org
https://mail.gna.org/listinfo/freeciv-dev

Reply via email to