In term_init(), copy stuff out of the conf _before_ calling
[sgt/putty] / unix / gtkwin.c
index c43c4e3..3f6f94b 100644 (file)
@@ -2968,7 +2968,7 @@ void change_settings_menuitem(GtkMenuItem *item, gpointer data)
          */
         if (strcmp(conf_get_str(oldconf, CONF_wintitle),
                   conf_get_str(newconf, CONF_wintitle)))
-            set_title(inst, conf_get_str(oldconf, CONF_wintitle));
+            set_title(inst, conf_get_str(newconf, CONF_wintitle));
        set_window_titles(inst);
 
         /*