- 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
This commit is contained in:
tchernobog 2006-08-08 19:46:14 +00:00
parent 0138387a7f
commit e975bfdd0b
1 changed files with 7 additions and 2 deletions

View File

@ -70,7 +70,12 @@ History::notify_change()
bool bool
History::set_notify_enabled(bool enabled) History::set_notify_enabled(bool enabled)
{ {
bool r = _notify; bool old_value = _notify;
_notify = enabled; _notify = enabled;
return r;
// Force notify if we re-enable it
if(old_value == false && _notify == true)
notify_change();
return old_value;
} }