From e975bfdd0b51ce05f6fc4d250ac7a4cd51bc2bbd Mon Sep 17 00:00:00 2001 From: tchernobog Date: Tue, 8 Aug 2006 19:46:14 +0000 Subject: [PATCH] - Bugfix to call History::notify_change when reenabling notifications git-svn-id: svn://svn.gna.org/svn/sgpemv2/trunk@830 3ecf2c5c-341e-0410-92b4-d18e462d057c --- src/backend/history.cc | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/src/backend/history.cc b/src/backend/history.cc index f0a13f0..478f288 100644 --- a/src/backend/history.cc +++ b/src/backend/history.cc @@ -70,7 +70,12 @@ History::notify_change() bool History::set_notify_enabled(bool enabled) { - bool r = _notify; + bool old_value = _notify; _notify = enabled; - return r; + + // Force notify if we re-enable it + if(old_value == false && _notify == true) + notify_change(); + + return old_value; }