From 7b7bf4aaf6f0cbf02f9c4f5494c2af5f4247a137 Mon Sep 17 00:00:00 2001
From: Yann Leboulanger <asterix@lagaule.org>
Date: Thu, 25 Jun 2009 19:28:23 +0200
Subject: [PATCH] enable / disable ping_alives_enable too when (un)checking
 send keep alives in account modification window. Fixes #5100

---
 src/config.py | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/src/config.py b/src/config.py
index 5f28134f8b..30992c3f53 100644
--- a/src/config.py
+++ b/src/config.py
@@ -1995,6 +1995,8 @@ class AccountsWindow:
 			return
 		self.on_checkbutton_toggled(widget, 'keep_alives_enabled',
 			account=self.current_account)
+		gajim.config.set_per('accounts', self.current_account,
+			'ping_alives_enabled', widget.get_active())
 
 	def on_custom_host_port_checkbutton1_toggled(self, widget):
 		if self.option_changed('use_custom_host', widget.get_active()):
-- 
GitLab