# HG changeset patch # User Luke Schierer # Date 1055125315 0 # Node ID 7bdf66ab4fdd08509685dba20f106170f691aada # Parent eb9cfee31244fe183029e622fc3af2afefaf6c6f [gaim-migrate @ 6249] lschiere0: If you selected a browser and later uninstall it, it reverts the setting to custom lschiere0: If the only browser that gaim recognizes is uninstalled, you will be unable to set a custom browser without this patch that sounds decidedly odd Because the only thing left in drop down list is Manual, and because in the config file it is not custom, the textfield is disabled You cannot change to another browser, so you the preference is never changed, and stuck with an unsable browser oh, so you can't toggle the drop down to reset the preference, so you can't get the field to ungray unusable* yeah, i can see that Right committer: Tailor Script diff -r eb9cfee31244 -r 7bdf66ab4fdd src/gtkprefs.c --- a/src/gtkprefs.c Mon Jun 09 02:04:05 2003 +0000 +++ b/src/gtkprefs.c Mon Jun 09 02:21:55 2003 +0000 @@ -1270,6 +1270,7 @@ GList *browsers = NULL; int i = 0; + char *browser_setting = (char *)gaim_prefs_get_string("/gaim/gtk/browsers/browser"); browsers = g_list_prepend(browsers, "custom"); browsers = g_list_prepend(browsers, _("Manual")); @@ -1279,9 +1280,14 @@ browsers = g_list_prepend(browsers, possible_browsers[i].command); browsers = g_list_prepend(browsers, _(possible_browsers[i].name)); + if(!strcmp(possible_browsers[i].command, browser_setting)) + browser_setting = NULL; } } + if(browser_setting) + gaim_prefs_set_string("/gaim/gtk/browsers/browser", "custom"); + return browsers; } diff -r eb9cfee31244 -r 7bdf66ab4fdd src/main.c --- a/src/main.c Mon Jun 09 02:04:05 2003 +0000 +++ b/src/main.c Mon Jun 09 02:21:55 2003 +0000 @@ -656,6 +656,7 @@ #ifdef DEBUG opt_debug = 1; #endif +abort(); #ifdef ENABLE_NLS bindtextdomain(PACKAGE, LOCALEDIR); bind_textdomain_codeset(PACKAGE, "UTF-8");