# HG changeset patch # User Ka-Hing Cheung # Date 1055125315 0 # Node ID a96604ecebc4b374349517c6bb1cc87ceaa78183 # Parent 59e4e52ad0cb1944638cdffd612905cba154dd90 [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: Luke Schierer diff -r 59e4e52ad0cb -r a96604ecebc4 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 59e4e52ad0cb -r a96604ecebc4 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");