Mercurial > pidgin.yaz
changeset 5819:7bdf66ab4fdd
[gaim-migrate @ 6249]
<javabsp> lschiere0: If you selected a browser and later uninstall it, it reverts the setting to custom
<javabsp> lschiere0: If the only browser that gaim recognizes is uninstalled, you will be unable to set a custom browser without this patch
<lschiere0> that sounds decidedly odd
<javabsp> 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
<javabsp> You cannot change to another browser, so you the preference is never changed, and stuck with an unsable browser
<lschiere0> oh, so you can't toggle the drop down to reset the preference, so you can't get the field to ungray
<javabsp> unusable*
<lschiere0> yeah, i can see that
<javabsp> Right
committer: Tailor Script <tailor@pidgin.im>
author | Luke Schierer <lschiere@pidgin.im> |
---|---|
date | Mon, 09 Jun 2003 02:21:55 +0000 |
parents | eb9cfee31244 |
children | a929723531c8 |
files | src/gtkprefs.c src/main.c |
diffstat | 2 files changed, 7 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- 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; }