don't send config when we don't have it

This commit is contained in:
Yann Leboulanger 2006-02-07 23:28:37 +00:00
parent 59e6377546
commit 4c8fb94601
1 changed files with 3 additions and 1 deletions

View File

@ -2032,7 +2032,9 @@ class GroupchatConfigWindow(DataFormWindow):
def on_ok_button_clicked(self, widget):
# We pressed OK button of the DataFormWindow
gajim.connections[self.account].send_gc_config(self.room_jid, self.config)
if self.config:
gajim.connections[self.account].send_gc_config(self.room_jid,
self.config)
for affiliation in ('outcast', 'member', 'owner', 'admin'):
list = {}
model = self.affiliation_treeview[affiliation].get_model()