Mercurial > pidgin.yaz
diff src/gaimrc.c @ 5072:5078f765e3f9
[gaim-migrate @ 5425]
Pounces with empty fields for message, sound, or command now pass NULL
to those fields when creating the pounce. This eliminates the problem
of a default sound (empty field) being read back as a filename of "".
committer: Tailor Script <tailor@pidgin.im>
author | Christian Hammond <chipx86@chipx86.com> |
---|---|
date | Tue, 08 Apr 2003 01:07:11 +0000 |
parents | abc8489b2e8f |
children | 0e639df44fb5 |
line wrap: on
line diff
--- a/src/gaimrc.c Tue Apr 08 01:05:08 2003 +0000 +++ b/src/gaimrc.c Tue Apr 08 01:07:11 2003 +0000 @@ -1631,8 +1631,10 @@ old_pounce_opts_to_new(ph->options, &events, &actions); pounce = gaim_gtkpounce_new(account, ph->name, events, actions, - ph->message, ph->command, ph->sound, - (ph->options & 0x100)); + (*ph->message == '\0' ? NULL : ph->message), + (*ph->command == '\0' ? NULL : ph->command), + (*ph->sound == '\0' ? NULL : ph->sound), + (ph->options & 0x100)); g_free(ph); }