]> hydra-www.ietfng.org Git - gtetrinet/commitdiff
patch from James Antill. Save & restore the last used server.
authorJordi Albornoz <jordi@src.gnome.org>
Mon, 28 Oct 2002 00:37:31 +0000 (00:37 +0000)
committerJordi Albornoz <jordi@src.gnome.org>
Mon, 28 Oct 2002 00:37:31 +0000 (00:37 +0000)
ChangeLog
src/config.c

index c8a58a6cb41ceb3d1e776337625de883f985dcb8..049ea21500ca9a4e4a2d66cca04b240aa382b8cd 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2002-10-28  Jordi Mallach  <jordi@sindominio.net>
+
+       * src/config.c (config_loadconfig): patch from James Antill. Save
+       and restore the server, as well as the server history.
+
 2002-10-27  Jordi Mallach  <jordi@sindominio.net>
 
        * NEWS, configure.in: released gtetrinet 0.4.4.
index 8b67e46a3b7bfdf6671a7420b0f122fd421ec33e..ced841f1d47e0b27a297ceca6a1f6f0129f76217 100644 (file)
@@ -181,6 +181,12 @@ void config_loadconfig (void)
         g_free(p);
     }
 
+    p = gnome_config_get_string ("Player/Server");
+    if (p) {
+        GTET_O_STRCPY(server, p);
+        g_free(p);
+    }
+
     p = gnome_config_get_string ("Player/Team");
     if (p) {
         GTET_O_STRCPY(team, p);
@@ -218,6 +224,7 @@ void config_saveconfig (void)
     gnome_config_set_int ("Sound/EnableMidi", midienable);
 
     gnome_config_set_string ("Player/Nickname", nick);
+    gnome_config_set_string ("Player/Server", server);
     gnome_config_set_string ("Player/Team", team);
 
     gnome_config_set_int ("Keys/Right", keys[K_RIGHT]);