Mercurial > pidgin.yaz
diff pidgin/gtkconv.c @ 18238:7684084830c6
Fix a crash when trying to alias someone from the tab-label on a disconnected
account.
author | Sadrul Habib Chowdhury <imadil@gmail.com> |
---|---|
date | Sat, 23 Jun 2007 06:20:05 +0000 |
parents | cbc89a49e43b |
children | 726f5e9fd606 |
line wrap: on
line diff
--- a/pidgin/gtkconv.c Sat Jun 23 06:01:30 2007 +0000 +++ b/pidgin/gtkconv.c Sat Jun 23 06:20:05 2007 +0000 @@ -8069,6 +8069,11 @@ return FALSE; } + if (!purple_account_is_connected(gtkconv->active_conv->account)) { + /* Do not allowing aliasing someone in a disconnected account. */ + return FALSE; + } + /* alias label */ entry = gtk_entry_new(); gtk_entry_set_has_frame(GTK_ENTRY(entry), FALSE);